You are here

class TestFieldType in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php \Drupal\Tests\field\Unit\TestFieldType

A test class to test field storage dependencies.

Hierarchy

Expanded class hierarchy of TestFieldType

See also

\Drupal\Core\Field\FieldItemInterface::calculateStorageDependencies()

File

core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php, line 120
Contains \Drupal\Tests\field\Unit\FieldStorageConfigEntityUnitTest.

Namespace

Drupal\Tests\field\Unit
View source
class TestFieldType {

  /**
   * {@inheritdoc}
   */
  public static function calculateStorageDependencies(FieldStorageDefinitionInterface $field_definition) {
    $dependencies = [];
    $dependencies['module'] = [
      'entity_test',
    ];
    $dependencies['theme'] = [
      'stark',
    ];
    return $dependencies;
  }

}

Members