protected function OpenlayersInteractionPluginAddForm::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/ OpenlayersInteractionPluginAddForm.php, line 59
Class
- OpenlayersInteractionPluginAddForm
- Provides an add form for the settings for Openlayers plugins.
Namespace
Drupal\openlayers\FormCode
protected function preparePlugin($plugin_type, $plugin) {
$plugin = $this->pluginManager
->createInstance($plugin);
return $plugin;
}