function ThreeColumnLayout::getWidthOptions

Same name in other branches
  1. 8.9.x core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php \Drupal\layout_builder\Plugin\Layout\ThreeColumnLayout::getWidthOptions()
  2. 10 core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php \Drupal\layout_builder\Plugin\Layout\ThreeColumnLayout::getWidthOptions()
  3. 11.x core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php \Drupal\layout_builder\Plugin\Layout\ThreeColumnLayout::getWidthOptions()

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%',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.