function ItemList::getValue
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php \Drupal\Core\TypedData\Plugin\DataType\ItemList::getValue()
- 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php \Drupal\Core\TypedData\Plugin\DataType\ItemList::getValue()
- 11.x core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php \Drupal\Core\TypedData\Plugin\DataType\ItemList::getValue()
Overrides TypedData::getValue
4 calls to ItemList::getValue()
- FieldItemList::defaultValuesFormSubmit in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Processes the submitted default value.
- FieldItemList::equals in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Determines equality to another object implementing FieldItemListInterface.
- LayoutSectionItemList::getEntity in core/
modules/ layout_builder/ src/ Field/ LayoutSectionItemList.php - Gets the entity that field belongs to.
- MapFieldItemList::equals in core/
lib/ Drupal/ Core/ Field/ MapFieldItemList.php - Determines equality to another object implementing FieldItemListInterface.
File
-
core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ ItemList.php, line 40
Class
- ItemList
- A generic list class.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
public function getValue() {
$values = [];
foreach ($this->list as $delta => $item) {
$values[$delta] = $item->getValue();
}
return $values;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.