protected function BaseThreeColumnsLayout::getColumnWidthOptions in Layout Builder Base 8
Gets the column width options for the configuration form.
Return value
string[] The column width 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::getColumnWidthOptions
1 call to BaseThreeColumnsLayout::getColumnWidthOptions()
- BaseThreeColumnsLayout::getDefaultColumnWidth in modules/
layout_builder_base_library/ src/ Plugin/ Layout/ BaseThreeColumnsLayout.php - Get the default column width option.
File
- modules/
layout_builder_base_library/ src/ Plugin/ Layout/ BaseThreeColumnsLayout.php, line 33
Class
- BaseThreeColumnsLayout
- Configurable layout plugin class.
Namespace
Drupal\layout_builder_base_library\Plugin\LayoutCode
protected function getColumnWidthOptions() {
$options = [
'layout--column-width--default' => $this
->t('33% - 33% - 33%'),
'layout--column-width--25-50-25' => $this
->t('25% - 50% - 25%'),
'layout--column-width--25-25-50' => $this
->t('25% - 25% - 50%'),
'layout--column-width--50-25-25' => $this
->t('50% - 25% - 25%'),
];
$this->moduleHandler
->alter('layout_builder_base_three_column_width', $options);
return $options;
}