function FieldDefinitionTest::factoryTypeProvider

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php \Drupal\Tests\Core\Entity\FieldDefinitionTest::factoryTypeProvider()
  2. 10 core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php \Drupal\Tests\Core\Entity\FieldDefinitionTest::factoryTypeProvider()
  3. 8.9.x core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php \Drupal\Tests\Core\Entity\FieldDefinitionTest::factoryTypeProvider()
  4. main 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\Entity

Code

public function factoryTypeProvider() {
  return [
    '::createFromFieldStorageDefinition factory' => [
      'createFromFieldStorageDefinition',
    ],
    '::create factory' => [
      'create',
    ],
    '::createFromDataType factory' => [
      'createFromDataType',
    ],
    '::createFromItemType factory' => [
      'createFromItemType',
    ],
  ];
}

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