protected function BaseMultipleColumnsLayout::getColumnBreakpointOptions in Layout Builder Base 8
Gets the column breakpoint options for the configuration form.
Return value
string[] The column breakpoint 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::getColumnBreakpointOptions
File
- modules/
layout_builder_base_library/ src/ Plugin/ Layout/ BaseMultipleColumnsLayout.php, line 53
Class
- BaseMultipleColumnsLayout
- Configurable layout plugin class.
Namespace
Drupal\layout_builder_base_library\Plugin\LayoutCode
protected function getColumnBreakpointOptions() {
$options = [
'layout--column-breakpoint--none' => $this
->t('None'),
'layout--column-breakpoint--small' => $this
->t('Small'),
'layout--column-breakpoint--medium' => $this
->t('Medium'),
'layout--column-breakpoint--standard' => $this
->t('Standard'),
'layout--column-breakpoint--large' => $this
->t('Large'),
];
$this->moduleHandler
->alter('layout_builder_base_column_breakpoint', $options);
return $options;
}