You are here

ThreeColumnLayout.php in Drupal 9

File

core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php
View source
<?php

namespace Drupal\layout_builder\Plugin\Layout;


/**
 * Configurable three column layout plugin class.
 *
 * @internal
 *   Plugin classes are internal.
 */
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';
  }

}

Classes

Namesort descending Description
ThreeColumnLayout Configurable three column layout plugin class.