public function BootstrapLayout::defaultConfiguration in Bootstrap Layout Builder 1.x
Same name and namespace in other branches
- 2.x src/Plugin/Layout/BootstrapLayout.php \Drupal\bootstrap_layout_builder\Plugin\Layout\BootstrapLayout::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides LayoutDefault::defaultConfiguration
File
- src/
Plugin/ Layout/ BootstrapLayout.php, line 151
Class
- BootstrapLayout
- A layout from our bootstrap layout builder.
Namespace
Drupal\bootstrap_layout_builder\Plugin\LayoutCode
public function defaultConfiguration() {
$default_configuration = parent::defaultConfiguration();
$regions_classes = [];
foreach ($this
->getPluginDefinition()
->getRegionNames() as $region_name) {
$regions_classes[$region_name] = '';
}
return $default_configuration + [
// Container wrapper commonly used on container background and minor styling.
'container_wrapper_classes' => '',
// Add background color to container wrapper.
'container_wrapper_bg_color_class' => '',
// Add background media to container wrapper.
'container_wrapper_bg_media' => NULL,
// Container is the section wrapper.
// Empty means no container else it reflect container type.
// In bootstrap it will be 'container' or 'container-fluid'.
'container' => '',
// Section refer to the div that contains row in bootstrap.
'section_classes' => '',
// Region refer to the div that contains Col in bootstrap "Advanced mode".
'regions_classes' => $regions_classes,
// Array of breakpoints and the value of its option.
'breakpoints' => [],
// The region refer to the div that contains Col in bootstrap.
'layout_regions_classes' => [],
];
}