You are here

public function ExportPluginManager::validatePlugin in Search API Synonym 8

Validate that a specific export plugin exists.

Parameters

string $plugin: The plugin machine name.

Return value

boolean TRUE if the plugin exists.

File

src/Export/ExportPluginManager.php, line 128

Class

ExportPluginManager
Base class for search api synonym export plugin managers.

Namespace

Drupal\search_api_synonym\Export

Code

public function validatePlugin($plugin) {
  if ($this
    ->getDefinition($plugin, FALSE)) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}