You are here

public function OpenlayersMap::getInteractions in Openlayers 8.4

Overrides OpenlayersMapInterface::getInteractions

1 call to OpenlayersMap::getInteractions()
OpenlayersMap::getPluginCollections in src/Entity/OpenlayersMap.php
Gets the plugin collections used by this object.

File

src/Entity/OpenlayersMap.php, line 239

Class

OpenlayersMap
Defines the Openlayers Map entity.

Namespace

Drupal\openlayers\Entity

Code

public function getInteractions() {
  if (!isset($this->interactionsCollection)) {
    $this->interactionsCollection = new OpenlayersPluginCollection($this
      ->getInteractionPluginManager(), isset($this->interactions) ? $this->interactions : []);
    $this->interactionsCollection
      ->sort();
  }
  return $this->interactionsCollection;
}