ThreeColumnLayout.php

Same filename in other branches
  1. 9 core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php
  2. 8.9.x core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php
  3. 11.x core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php

Namespace

Drupal\layout_builder\Plugin\Layout

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

Title Deprecated Summary
ThreeColumnLayout Configurable three column layout plugin class.

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