function FieldItemDataDefinition::setFieldDefinition

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php \Drupal\Core\Field\TypedData\FieldItemDataDefinition::setFieldDefinition()
  2. 8.9.x core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php \Drupal\Core\Field\TypedData\FieldItemDataDefinition::setFieldDefinition()
  3. 11.x core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php \Drupal\Core\Field\TypedData\FieldItemDataDefinition::setFieldDefinition()

Overrides FieldItemDataDefinitionInterface::setFieldDefinition

File

core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php, line 85

Class

FieldItemDataDefinition
A typed data definition class for defining field items.

Namespace

Drupal\Core\Field\TypedData

Code

public function setFieldDefinition($field_definition) {
    $this->fieldDefinition = $field_definition;
    return $this;
}

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