protected function OpenlayersStylePluginAddForm::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/ OpenlayersStylePluginAddForm.php, line 61
Class
- OpenlayersStylePluginAddForm
- 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;
}