You are here

protected function MapLayerAddForm::prepareOpenlayersLayer in Openlayers 8.4

Converts an image effect ID into an object.

Parameters

string $image_effect: The image effect ID.

Return value

\Drupal\image\ImageEffectInterface The image effect object.

Overrides MapLayerFormBase::prepareOpenlayersLayer

File

src/Form/MapLayerAddForm.php, line 59

Class

MapLayerAddForm
Provides an add form for image effects.

Namespace

Drupal\openlayers\Form

Code

protected function prepareOpenlayersLayer($layer) {

  /*
      $image_effect = $this->effectManager->createInstance($image_effect);
      // Set the initial weight so this effect comes last.
      $image_effect->setWeight(count($this->imageStyle->getEffects()));
  */
  return $layer;
}