protected function MapStyleEditForm::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/ MapStyleEditForm.php, line 30
Class
- MapStyleEditForm
- Provides an edit form for image effects.
Namespace
Drupal\openlayers\FormCode
protected function prepareOpenlayersLayer($layer) {
/*
return $this->imageStyle->getEffect($image_effect); // EDIT FORM
*/
/*
$image_effect = $this->effectManager->createInstance($image_effect); // ADD FORM ?
// Set the initial weight so this effect comes last.
$image_effect->setWeight(count($this->imageStyle->getEffects()));
*/
return $layer;
}