abstract protected function MultiWidthLayoutBase::getWidthOptions in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase::getWidthOptions()
- 9 core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase::getWidthOptions()
Gets the width options for the configuration form.
The first option will be used as the default 'column_widths' configuration value.
Return value
string[] The width options array where the keys are strings that will be added to the CSS classes and the values are the human readable labels.
File
- core/
modules/ layout_builder/ src/ Plugin/ Layout/ MultiWidthLayoutBase.php, line 72
Class
- MultiWidthLayoutBase
- Base class of layouts with configurable widths.
Namespace
Drupal\layout_builder\Plugin\LayoutCode
protected abstract function getWidthOptions();