You are here

public function FieldTypePluginManagerDummy::createFieldItemList in Entity Construction Kit (ECK) 8

Creates a new field item list.

The provided entity is assigned as the parent of the created item list. However, it is the responsibility of the caller (usually the parent entity itself) to make the parent aware of the field as a new child.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity this field item list will be part of.

string $field_name: The name of the field.

mixed $values: (optional) The data value. If set, it has to match one of the supported data type format as documented for the data type classes.

Return value

\Drupal\Core\Field\FieldItemListInterface The instantiated object.

Overrides FieldTypePluginManagerInterface::createFieldItemList

File

tests/src/Unit/TestDoubles/FieldTypePluginManagerDummy.php, line 66

Class

FieldTypePluginManagerDummy
Dummy implementation of FieldTypePluginManagerInterface.

Namespace

Drupal\Tests\eck\Unit\TestDoubles

Code

public function createFieldItemList(FieldableEntityInterface $entity, $field_name, $values = NULL) {

  // Stub.
}