function LayoutSectionItemList::getEntity
Same name in other branches
- 9 core/modules/layout_builder/src/Field/LayoutSectionItemList.php \Drupal\layout_builder\Field\LayoutSectionItemList::getEntity()
- 10 core/modules/layout_builder/src/Field/LayoutSectionItemList.php \Drupal\layout_builder\Field\LayoutSectionItemList::getEntity()
- 11.x core/modules/layout_builder/src/Field/LayoutSectionItemList.php \Drupal\layout_builder\Field\LayoutSectionItemList::getEntity()
Overrides FieldItemList::getEntity
File
-
core/
modules/ layout_builder/ src/ Field/ LayoutSectionItemList.php, line 61
Class
- LayoutSectionItemList
- Defines a item list class for layout section fields.
Namespace
Drupal\layout_builder\FieldCode
public function getEntity() {
$entity = parent::getEntity();
// Ensure the entity is updated with the latest value.
$entity->set($this->getName(), $this->getValue());
return $entity;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.