You are here

protected function ThreeColumnLayout::getWidthOptions in Drupal 9

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

Overrides MultiWidthLayoutBase::getWidthOptions

File

core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php, line 16

Class

ThreeColumnLayout
Configurable three column layout plugin class.

Namespace

Drupal\layout_builder\Plugin\Layout

Code

protected function getWidthOptions() {
  return [
    '25-50-25' => '25%/50%/25%',
    '33-34-33' => '33%/34%/33%',
    '25-25-50' => '25%/25%/50%',
    '50-25-25' => '50%/25%/25%',
  ];
}