FieldConfigBase::getItemDefinition

public FieldConfigBase::getItemDefinition()

Gets the data definition of an item of the list.

Return value

\Drupal\Core\TypedData\DataDefinitionInterface A data definition describing the list items.

Overrides ListDataDefinitionInterface::getItemDefinition

File

core/lib/Drupal/Core/Field/FieldConfigBase.php, line 514

Class

FieldConfigBase
Base class for configurable field definitions.

Namespace

Drupal\Core\Field

Code

public function getItemDefinition() {
  if (!isset($this->itemDefinition)) {
    $this->itemDefinition = FieldItemDataDefinition::create($this)
      ->setSettings($this->getSettings());
  }
  return $this->itemDefinition;
}
doc_Drupal
2016-10-29 09:10:53
Comments
Leave a Comment

Please login to continue.