ListDataDefinition::setItemDefinition

public ListDataDefinition::setItemDefinition(DataDefinitionInterface $definition)

Sets the item definition.

Parameters

\Drupal\Core\TypedData\DataDefinition $definition: A list item's data definition.

Return value

$this

File

core/lib/Drupal/Core/TypedData/ListDataDefinition.php, line 106

Class

ListDataDefinition
A typed data definition class for defining lists.

Namespace

Drupal\Core\TypedData

Code

public function setItemDefinition(DataDefinitionInterface $definition) {
  $this->itemDefinition = $definition;
  return $this;
}
doc_Drupal
2016-10-29 09:23:29
Comments
Leave a Comment

Please login to continue.