function MultiWidthLayoutBase::getWidthOptions
Same name in other branches
- 8.9.x core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase::getWidthOptions()
- 10 core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase::getWidthOptions()
- 11.x 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.
2 calls to MultiWidthLayoutBase::getWidthOptions()
- MultiWidthLayoutBase::buildConfigurationForm in core/
modules/ layout_builder/ src/ Plugin/ Layout/ MultiWidthLayoutBase.php - Form constructor.
- MultiWidthLayoutBase::getDefaultWidth in core/
modules/ layout_builder/ src/ Plugin/ Layout/ MultiWidthLayoutBase.php - Provides a default value for the width options.
2 methods override MultiWidthLayoutBase::getWidthOptions()
- ThreeColumnLayout::getWidthOptions in core/
modules/ layout_builder/ src/ Plugin/ Layout/ ThreeColumnLayout.php - Gets the width options for the configuration form.
- TwoColumnLayout::getWidthOptions in core/
modules/ layout_builder/ src/ Plugin/ Layout/ TwoColumnLayout.php - Gets the width options for the configuration form.
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();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.