You are here

abstract protected function MultiWidthLayoutBase::getWidthOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase::getWidthOptions()
  2. 10 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\Layout

Code

protected abstract function getWidthOptions();