You are here

public function OpenlayersMap::getLayer 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::getLayer

File

src/Entity/OpenlayersMap.php, line 156

Class

OpenlayersMap
Defines the Openlayers Map entity.

Namespace

Drupal\openlayers\Entity

Code

public function getLayer($layer) {

  //    return $this->getLayers()->get($layer);
  return $this
    ->getLayers()[$layer];
}