You are here

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\Entity

Code

public function addMapInteraction($configuration) {
  $configuration['uuid'] = $this
    ->uuidGenerator()
    ->generate();
  $this
    ->getInteractions()
    ->addInstanceId($configuration['uuid'], $configuration);
  return $configuration['uuid'];
}