You are here

protected function BaseFieldTest::setupEntityHierarchyField in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x tests/src/Kernel/BaseFieldTest.php \Drupal\Tests\entity_hierarchy\Kernel\BaseFieldTest::setupEntityHierarchyField()

Creates a new entity hierarchy field for the given bundle.

Parameters

string $entity_type_id: Entity type to add the field to.

string $bundle: Bundle of field.

string $field_name: Field name.

Overrides EntityHierarchyTestTrait::setupEntityHierarchyField

File

tests/src/Kernel/BaseFieldTest.php, line 22

Class

BaseFieldTest
Defines a class for testing base field integration.

Namespace

Drupal\Tests\entity_hierarchy\Kernel

Code

protected function setupEntityHierarchyField($entity_type_id, $bundle, $field_name) {

  // Nil op. We use a base field here.
}