You are here

protected function ParserManager::providerExists in Markdown 8.2

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

src/PluginManager/ParserManager.php, line 134

Class

ParserManager
Markdown Parser Plugin Manager.

Namespace

Drupal\markdown\PluginManager

Code

protected function providerExists($provider) {

  // It's known that plugins provided by this module exist. Explicitly and
  // always return TRUE for this case. This is needed during install when
  // the module is not yet (officially) installed.
  // @see markdown_requirements()
  if ($provider === 'markdown') {
    return TRUE;
  }
  return parent::providerExists($provider);
}