You are here

protected function OpenlayersControlPluginAddForm::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/OpenlayersControlPluginAddForm.php, line 59

Class

OpenlayersControlPluginAddForm
Provides an add form for the settings for Openlayers plugins.

Namespace

Drupal\openlayers\Form

Code

protected function preparePlugin($plugin_type, $plugin) {
  $plugin = $this->pluginManager
    ->createInstance($plugin);
  return $plugin;
}