class TestFieldType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php \Drupal\Tests\field\Unit\TestFieldType
A test class to test field storage dependencies.
Hierarchy
- class \Drupal\Tests\field\Unit\TestFieldType
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\UnitView source
class TestFieldType {
/**
* {@inheritdoc}
*/
public static function calculateStorageDependencies(FieldStorageDefinitionInterface $field_definition) {
$dependencies = [];
$dependencies['module'] = [
'entity_test',
];
$dependencies['theme'] = [
'stark',
];
return $dependencies;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestFieldType:: |
public static | function |