class FieldStorageDefinition

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/entity_test/src/FieldStorageDefinition.php \Drupal\entity_test\FieldStorageDefinition

A custom field storage definition class.

For convenience we extend from BaseFieldDefinition although this should not implement FieldDefinitionInterface.

@todo Provide and make use of a proper FieldStorageDefinition class instead: https://www.drupal.org/node/2280639.

Hierarchy

Expanded class hierarchy of FieldStorageDefinition

4 files declare their use of FieldStorageDefinition
EntityDefinitionTestTrait.php in core/modules/system/tests/src/Functional/Entity/Traits/EntityDefinitionTestTrait.php
EntityDefinitionUpdateTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
EntityTestBaseFieldDisplay.php in core/modules/system/tests/modules/entity_test/src/Entity/EntityTestBaseFieldDisplay.php
entity_schema_test.module in core/modules/system/tests/modules/entity_schema_test/entity_schema_test.module
Test module for the entity API providing a bundle field.

File

core/modules/system/tests/modules/entity_test/src/FieldStorageDefinition.php, line 16

Namespace

Drupal\entity_test
View source
class FieldStorageDefinition extends BaseFieldDefinition {
  
  /**
   * {@inheritdoc}
   */
  public function isBaseField() {
    return FALSE;
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.