function LayoutSectionItem::generateSampleValue

Overrides FieldItemBase::generateSampleValue

File

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

Class

LayoutSectionItem
Plugin implementation of the 'layout_section' field type.

Namespace

Drupal\layout_builder\Plugin\Field\FieldType

Code

public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
  // @todo Expand this in https://www.drupal.org/node/2912331.
  $values['section'] = new Section('layout_onecol');
  return $values;
}

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