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

Breadcrumb

  1. Drupal Core 11.1.x
  2. TwoColumnLayout.php

function TwoColumnLayout::getWidthOptions

Overrides MultiWidthLayoutBase::getWidthOptions

File

core/modules/layout_builder/src/Plugin/Layout/TwoColumnLayout.php, line 16

Class

TwoColumnLayout
Configurable two column layout plugin class.

Namespace

Drupal\layout_builder\Plugin\Layout

Code

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

API Navigation

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