public function ImportPluginManager::getAvailableImportPlugins in Search API Synonym 8
Gets a list of available import plugins.
Return value
array An array with the plugin names as keys and the descriptions as values.
File
- src/
Import/ ImportPluginManager.php, line 65
Class
- ImportPluginManager
- Base class for search api synonym import plugin managers.
Namespace
Drupal\search_api_synonym\ImportCode
public function getAvailableImportPlugins() {
// Use plugin system to get list of available import plugins.
$plugins = $this
->getDefinitions();
$output = [];
foreach ($plugins as $id => $definition) {
$output[$id] = $definition;
}
return $output;
}