function LayoutSectionItem::propertyDefinitions
Same name in other branches
- 9 core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php \Drupal\layout_builder\Plugin\Field\FieldType\LayoutSectionItem::propertyDefinitions()
- 8.9.x core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php \Drupal\layout_builder\Plugin\Field\FieldType\LayoutSectionItem::propertyDefinitions()
- 10 core/modules/layout_builder/src/Plugin/Field/FieldType/LayoutSectionItem.php \Drupal\layout_builder\Plugin\Field\FieldType\LayoutSectionItem::propertyDefinitions()
Overrides FieldItemInterface::propertyDefinitions
File
-
core/
modules/ layout_builder/ src/ Plugin/ Field/ FieldType/ LayoutSectionItem.php, line 35
Class
- LayoutSectionItem
- Plugin implementation of the 'layout_section' field type.
Namespace
Drupal\layout_builder\Plugin\Field\FieldTypeCode
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
$properties['section'] = DataDefinition::create('layout_section')->setLabel(new TranslatableMarkup('Layout Section'))
->setRequired(FALSE);
return $properties;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.