public function OpenlayersMap::addMapInteraction in Openlayers 8.4
File
- src/
Entity/ OpenlayersMap.php, line 277
Class
- OpenlayersMap
- Defines the Openlayers Map entity.
Namespace
Drupal\openlayers\EntityCode
public function addMapInteraction($configuration) {
$configuration['uuid'] = $this
->uuidGenerator()
->generate();
$this
->getInteractions()
->addInstanceId($configuration['uuid'], $configuration);
return $configuration['uuid'];
}