You are here

public function OpenlayersPluginBase::getConfiguration in Openlayers 8.4

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides ConfigurableInterface::getConfiguration

File

src/OpenlayersPluginBase.php, line 132

Class

OpenlayersPluginBase
Provides a base class for image effects.

Namespace

Drupal\openlayers

Code

public function getConfiguration() {
  $definition = $this
    ->getPluginDefinition();
  return [
    'uuid' => $this
      ->getUuid(),
    'id' => $this
      ->getPluginId(),
    'weight' => $this
      ->getWeight(),
    'data' => $this->configuration,
    'ol_id' => isset($definition['ol_id']) ? $definition['ol_id'] : '???',
  ];
}