protected function OpenlayersPluginEditForm::preparePlugin 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 OpenlayersPluginFormBase::preparePlugin
File
- src/
Form/ OpenlayersPluginEditForm.php, line 32
Class
- OpenlayersPluginEditForm
- Provides an edit form for the settings for Openlayers plugins.
Namespace
Drupal\openlayers\FormCode
protected function preparePlugin($plugin_type, $plugin) {
return $this->olMap
->{'get' . ucwords($plugin_type)}($plugin);
}