You are here

public function OpenlayersMap::getStyle in Openlayers 8.4

Returns a specific image effect.

Parameters

string $effect: The image effect ID.

Return value

\Drupal\image\ImageEffectInterface The image effect object.

Overrides OpenlayersMapInterface::getStyle

File

src/Entity/OpenlayersMap.php, line 196

Class

OpenlayersMap
Defines the Openlayers Map entity.

Namespace

Drupal\openlayers\Entity

Code

public function getStyle($style) {
  return $this
    ->getStyles()
    ->get($style);
}