You are here

class ThreeColumnLayout in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php \Drupal\layout_builder\Plugin\Layout\ThreeColumnLayout
  2. 9 core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php \Drupal\layout_builder\Plugin\Layout\ThreeColumnLayout

Configurable three column layout plugin class.

@internal Plugin classes are internal.

Hierarchy

Expanded class hierarchy of ThreeColumnLayout

1 string reference to 'ThreeColumnLayout'
layout_builder.layouts.yml in core/modules/layout_builder/layout_builder.layouts.yml
core/modules/layout_builder/layout_builder.layouts.yml

File

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

Namespace

Drupal\layout_builder\Plugin\Layout
View source
class ThreeColumnLayout extends MultiWidthLayoutBase {

  /**
   * {@inheritdoc}
   */
  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%',
    ];
  }

  /**
   * {@inheritdoc}
   */
  protected function getDefaultWidth() {
    return '33-34-33';
  }

}

Members