You are here

abstract protected function MultiWidthLayoutBase::getWidthOptions in Drupal 10

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. 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\Layout

Code

protected abstract function getWidthOptions();