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

Breadcrumb

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

function MultiWidthLayoutBase::getWidthOptions

Gets the width options for the configuration form.

The first option will be used as the default 'column_widths' configuration value.

Return value

string[] The width options array where the keys are strings that will be added to the CSS classes and the values are the human readable labels.

2 calls to MultiWidthLayoutBase::getWidthOptions()
MultiWidthLayoutBase::buildConfigurationForm in core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php
Form constructor.
MultiWidthLayoutBase::getDefaultWidth in core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php
Provides a default value for the width options.
2 methods override MultiWidthLayoutBase::getWidthOptions()
ThreeColumnLayout::getWidthOptions in core/modules/layout_builder/src/Plugin/Layout/ThreeColumnLayout.php
Gets the width options for the configuration form.
TwoColumnLayout::getWidthOptions in core/modules/layout_builder/src/Plugin/Layout/TwoColumnLayout.php
Gets the width options for the configuration form.

File

core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php, line 69

Class

MultiWidthLayoutBase
Base class of layouts with configurable widths.

Namespace

Drupal\layout_builder\Plugin\Layout

Code

protected abstract function getWidthOptions();

API Navigation

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