You are here

public function SynonymImportForm::getPluginInstance in Search API Synonym 8

Returns an import plugin instance for a given plugin id.

Parameters

string $plugin_id: The plugin_id for the plugin instance.

Return value

\Drupal\search_api_synonym\Import\ImportPluginInterface An import plugin instance.

2 calls to SynonymImportForm::getPluginInstance()
SynonymImportForm::submitForm in src/Form/SynonymImportForm.php
Form submission handler.
SynonymImportForm::validateForm in src/Form/SynonymImportForm.php
Form validation handler.

File

src/Form/SynonymImportForm.php, line 251

Class

SynonymImportForm
Class SynonymImportForm.

Namespace

Drupal\search_api_synonym\Form

Code

public function getPluginInstance($plugin_id) {
  return $this->pluginManager
    ->createInstance($plugin_id, []);
}