You are here

public function Attribution::defaultConfiguration in Openlayers 8.4

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides OpenlayersPluginBase::defaultConfiguration

File

src/Plugin/OpenlayersControl/Attribution.php, line 39

Class

Attribution
Defines the Attribution control for an Openlayers map.

Namespace

Drupal\openlayers\Plugin\OpenlayersControl

Code

public function defaultConfiguration() {
  return [
    'className' => 'ol-attribution',
    'collapsible' => TRUE,
    'collapsed' => FALSE,
    'tipLabel' => 'Attributions',
    'label' => 'aaaaaaaaaaaaaa',
    'collapseLabel' => 'bbbbbbbbbbbbbbbb',
  ];
}