You are here

protected function BootstrapLayoutsBase::getRegionDefaults in Bootstrap Layouts 8.5

Same name and namespace in other branches
  1. 8.4 src/Plugin/Layout/BootstrapLayoutsBase.php \Drupal\bootstrap_layouts\Plugin\Layout\BootstrapLayoutsBase::getRegionDefaults()

Provides a default region definition.

Return value

array Default region array.

3 calls to BootstrapLayoutsBase::getRegionDefaults()
BootstrapLayoutsBase::buildConfigurationForm in src/Plugin/Layout/BootstrapLayoutsBase.php
Form constructor.
BootstrapLayoutsBase::defaultConfiguration in src/Plugin/Layout/BootstrapLayoutsBase.php
Gets default configuration for this plugin.
BootstrapLayoutsBase::submitConfigurationForm in src/Plugin/Layout/BootstrapLayoutsBase.php
Form submission handler.

File

src/Plugin/Layout/BootstrapLayoutsBase.php, line 31

Class

BootstrapLayoutsBase
Layout class for all bootstrap layouts.

Namespace

Drupal\bootstrap_layouts\Plugin\Layout

Code

protected function getRegionDefaults() {
  return [
    'wrapper' => 'div',
    'classes' => [],
    'attributes' => '',
    'add_region_classes' => TRUE,
  ];
}