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; }
Please login to continue.