You are here

public function SynonymImportForm::__construct in Search API Synonym 8

Constructs a SynonymImportForm object.

Parameters

\Drupal\search_api_synonym\Import\ImportPluginManager $manager: Import plugin manager.

File

src/Form/SynonymImportForm.php, line 44

Class

SynonymImportForm
Class SynonymImportForm.

Namespace

Drupal\search_api_synonym\Form

Code

public function __construct(ImportPluginManager $manager) {
  $this->pluginManager = $manager;
  foreach ($manager
    ->getAvailableImportPlugins() as $id => $definition) {
    $this->availablePlugins[$id] = $manager
      ->createInstance($id);
  }
}