public function OpenlayersMap::getLayers in Openlayers 8.4
Returns the image effects for this style.
Return value
\Drupal\image\ImageEffectPluginCollection|\Drupal\image\ImageEffectInterface[] The image effect plugin collection.
Overrides OpenlayersMapInterface::getLayers
File
- src/
Entity/ OpenlayersMap.php, line 164
Class
- OpenlayersMap
- Defines the Openlayers Map entity.
Namespace
Drupal\openlayers\EntityCode
public function getLayers() {
if (!isset($this->layers)) {
return [];
}
$layer_collection = [];
foreach ($this->layers as $key => $layer) {
$layer_id = $key;
}
return $this->layers;
}