public function SynonymSettingsForm::__construct in Search API Synonym 8
Constructs a VacancySourceForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\search_api_synonym\Export\ExportPluginManager $manager: The synonyms export plugin manager.
Overrides ConfigFormBase::__construct
File
- src/
Form/ SynonymSettingsForm.php, line 35
Class
- SynonymSettingsForm
- Class SynonymSettingsForm.
Namespace
Drupal\search_api_synonym\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ExportPluginManager $manager) {
parent::__construct($config_factory);
foreach ($manager
->getAvailableExportPlugins() as $id => $definition) {
$this->availablePlugins[$id] = $manager
->createInstance($id);
}
}