You are here

public function LayoutSectionItem::isEmpty in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php \Drupal\layout_builder\Plugin\Field\FieldType\LayoutSectionItem::isEmpty()

Determines whether the data structure is empty.

Return value

bool TRUE if the data structure is empty, FALSE otherwise.

Overrides Map::isEmpty

File

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

Class

LayoutSectionItem
Plugin implementation of the 'layout_section' field type.

Namespace

Drupal\layout_builder\Plugin\Field\FieldType

Code

public function isEmpty() {
  return empty($this->section);
}