function LayoutSectionItemList::getEntity
Overrides FieldItemList::getEntity
File
- 
              core/
modules/ layout_builder/ src/ Field/ LayoutSectionItemList.php, line 61  
Class
- LayoutSectionItemList
 - Defines an 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.