public function OpenlayersMap::getStyles 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::getStyles
1 call to OpenlayersMap::getStyles()
- OpenlayersMap::getPluginCollections in src/
Entity/ OpenlayersMap.php - Gets the plugin collections used by this object.
File
- src/
Entity/ OpenlayersMap.php, line 203
Class
- OpenlayersMap
- Defines the Openlayers Map entity.
Namespace
Drupal\openlayers\EntityCode
public function getStyles() {
if (!isset($this->stylesCollection)) {
$this->stylesCollection = new OpenlayersPluginCollection($this
->getStylePluginManager(), isset($this->styles) ? $this->styles : []);
$this->stylesCollection
->sort();
}
return $this->stylesCollection;
}