public function ImportPluginManager::validatePlugin in Search API Synonym 8
Validate that a specific import plugin exists.
Parameters
string $plugin: The plugin machine name.
Return value
boolean TRUE if the plugin exists.
File
- src/
Import/ ImportPluginManager.php, line 86
Class
- ImportPluginManager
- Base class for search api synonym import plugin managers.
Namespace
Drupal\search_api_synonym\ImportCode
public function validatePlugin($plugin) {
if ($this
->getDefinition($plugin, FALSE)) {
return TRUE;
}
else {
return FALSE;
}
}