function ItemList::createItem
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php \Drupal\Core\TypedData\Plugin\DataType\ItemList::createItem()
- 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php \Drupal\Core\TypedData\Plugin\DataType\ItemList::createItem()
- 11.x core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php \Drupal\Core\TypedData\Plugin\DataType\ItemList::createItem()
Helper for creating a list item object.
Return value
\Drupal\Core\TypedData\TypedDataInterface
2 calls to ItemList::createItem()
- ItemList::appendItem in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ ItemList.php - Appends a new item to the list.
- ItemList::setValue in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ ItemList.php - Overrides \Drupal\Core\TypedData\TypedData::setValue().
1 method overrides ItemList::createItem()
- FieldItemList::createItem in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Helper for creating a list item object.
File
-
core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ ItemList.php, line 224
Class
- ItemList
- A generic list class.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
protected function createItem($offset = 0, $value = NULL) {
return $this->getTypedDataManager()
->getPropertyInstance($this, $offset, $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.