You are here

public function ErlLayout::defaultConfiguration in Entity Reference with Layout 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides LayoutDefault::defaultConfiguration

File

modules/erl_layouts/src/Plugin/Layout/ErlLayout.php, line 18

Class

ErlLayout
Layout class with various formatting options for custom ERL layouts.

Namespace

Drupal\erl_layouts\Plugin\Layout

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();
  $configuration += [
    'layout_classes' => '',
    'layout_bg_color' => '',
  ];
  foreach ($this
    ->getPluginDefinition()
    ->getRegions() as $region => $region_info) {
    $configuration[$region]['classes'] = '';
    $configuration[$region]['bg_color'] = '';
  }
  return $configuration;
}