public function OpenlayersMap::getControls in Openlayers 8.4
Overrides OpenlayersMapInterface::getControls
1 call to OpenlayersMap::getControls()
- OpenlayersMap::getPluginCollections in src/
Entity/ OpenlayersMap.php - Gets the plugin collections used by this object.
File
- src/
Entity/ OpenlayersMap.php, line 221
Class
- OpenlayersMap
- Defines the Openlayers Map entity.
Namespace
Drupal\openlayers\EntityCode
public function getControls() {
if (!isset($this->controlsCollection)) {
$this->controlsCollection = new OpenlayersPluginCollection($this
->getControlPluginManager(), isset($this->controls) ? $this->controls : []);
$this->controlsCollection
->sort();
}
return $this->controlsCollection;
}