public function FieldDefinitionTest::factoryTypeProvider in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php \Drupal\Tests\Core\Entity\FieldDefinitionTest::factoryTypeProvider()
A data provider for all the types of factories that can create definitions.
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ FieldDefinitionTest.php, line 343
Class
- FieldDefinitionTest
- Unit test for the FieldDefinition class.
Namespace
Drupal\Tests\Core\EntityCode
public function factoryTypeProvider() {
return [
'::createFromFieldStorageDefinition factory' => [
'createFromFieldStorageDefinition',
],
'::create factory' => [
'create',
],
'::createFromDataType factory' => [
'createFromDataType',
],
'::createFromItemType factory' => [
'createFromItemType',
],
];
}