Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal