You are here

TwoColumnLayout.php in Drupal 8

File

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

namespace Drupal\layout_builder\Plugin\Layout;


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

}

Classes

Namesort descending Description
TwoColumnLayout Configurable two column layout plugin class.