function LayoutSectionItem::__get

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php \Drupal\layout_builder\Plugin\Field\FieldType\LayoutSectionItem::__get()
  2. 8.9.x core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php \Drupal\layout_builder\Plugin\Field\FieldType\LayoutSectionItem::__get()
  3. 10 core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php \Drupal\layout_builder\Plugin\Field\FieldType\LayoutSectionItem::__get()

Overrides FieldItemBase::__get

File

core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php, line 46

Class

LayoutSectionItem
Plugin implementation of the 'layout_section' field type.

Namespace

Drupal\layout_builder\Plugin\Field\FieldType

Code

public function __get($name) {
    // @todo \Drupal\Core\Field\FieldItemBase::__get() does not return default
    //   values for un-instantiated properties. This will forcibly instantiate
    //   all properties with the side-effect of a performance hit, resolve
    //   properly in https://www.drupal.org/node/2413471.
    $this->getProperties();
    return parent::__get($name);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.