You are here

class TwoColumnLayout in Drupal 10

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

Configurable two column layout plugin class.

@internal Plugin classes are internal.

Hierarchy

Expanded class hierarchy of TwoColumnLayout

1 string reference to 'TwoColumnLayout'
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/TwoColumnLayout.php, line 11

Namespace

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

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

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

}

Members