function TwoColumnLayout::getWidthOptions

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

Overrides MultiWidthLayoutBase::getWidthOptions

File

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

Class

TwoColumnLayout
Configurable two column layout plugin class.

Namespace

Drupal\layout_builder\Plugin\Layout

Code

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

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