You are here

protected function BaseOneColumnLayout::getHeightOptions in Layout Builder Base 8

Gets the height options for the configuration form.

Return value

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

Overrides DefaultLayoutBase::getHeightOptions

File

modules/layout_builder_base_library/src/Plugin/Layout/BaseOneColumnLayout.php, line 354

Class

BaseOneColumnLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

protected function getHeightOptions() {
  $options = [
    'layout--height--default' => $this
      ->t('Default'),
    'layout--height--100vh' => $this
      ->t('100vh'),
    'layout--height--80vh' => $this
      ->t('80vh'),
  ];
  $this->moduleHandler
    ->alter('layout_builder_base_height', $options);
  return $options;
}