protected function BaseOneColumnLayout::getRightMarginOptions in Layout Builder Base 8
Gets the right margin options for the configuration form.
Return value
string[] The right margin 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::getRightMarginOptions
File
- modules/layout_builder_base_library/ src/ Plugin/ Layout/ BaseOneColumnLayout.php, line 180 
Class
- BaseOneColumnLayout
- Configurable layout plugin class.
Namespace
Drupal\layout_builder_base_library\Plugin\LayoutCode
protected function getRightMarginOptions() {
  $options = [
    '' => $this
      ->t('Choose'),
    'layout--right-margin--none' => $this
      ->t('None'),
    'layout--right-margin--small' => $this
      ->t('Small margin'),
    'layout--right-margin--default' => $this
      ->t('Default margin'),
    'layout--right-margin--big' => $this
      ->t('Big margin'),
  ];
  $this->moduleHandler
    ->alter('layout_builder_base_right_margin', $options);
  return $options;
}