protected function BaseOneColumnLayout::getColorsOptions in Layout Builder Base 8
Gets the colors options for the configuration form.
Return value
string[] The colors 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::getColorsOptions
File
- modules/
layout_builder_base_library/ src/ Plugin/ Layout/ BaseOneColumnLayout.php, line 368
Class
- BaseOneColumnLayout
- Configurable layout plugin class.
Namespace
Drupal\layout_builder_base_library\Plugin\LayoutCode
protected function getColorsOptions() {
$options = [
'layout--color--default' => $this
->t('Default'),
'layout--color--black' => $this
->t('Black'),
'layout--color--white' => $this
->t('White'),
'layout--color--grey' => $this
->t('Grey'),
];
$this->moduleHandler
->alter('layout_builder_base_color', $options);
return $options;
}