You are here

protected function BaseMultipleColumnsLayout::getAlignItemsOptions in Layout Builder Base 8

Gets the align items options for the configuration form.

Return value

string[] The align items 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::getAlignItemsOptions

File

modules/layout_builder_base_library/src/Plugin/Layout/BaseMultipleColumnsLayout.php, line 69

Class

BaseMultipleColumnsLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

protected function getAlignItemsOptions() {
  $options = [
    'layout--align-items--normal' => $this
      ->t('Normal'),
    'layout--align-items--stretch' => $this
      ->t('Stretch'),
    'layout--align-items--center' => $this
      ->t('Center'),
    'layout--align-items--start' => $this
      ->t('Start'),
    'layout--align-items--end' => $this
      ->t('End'),
  ];
  $this->moduleHandler
    ->alter('layout_builder_base_align_items', $options);
  return $options;
}