public function OpenlayersPluginBase::setConfiguration in Openlayers 8.4
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurableInterface::setConfiguration
1 call to OpenlayersPluginBase::setConfiguration()
- OpenlayersPluginBase::__construct in src/
OpenlayersPluginBase.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
File
- src/
OpenlayersPluginBase.php, line 148
Class
- OpenlayersPluginBase
- Provides a base class for image effects.
Namespace
Drupal\openlayersCode
public function setConfiguration(array $configuration) {
$configuration += [
'data' => [],
'uuid' => '',
'weight' => '',
];
$this->configuration = $configuration['data'] + $this
->defaultConfiguration();
$this->uuid = $configuration['uuid'];
$this->weight = $configuration['weight'];
return $this;
}