You are here

protected function HelpTopicPluginManager::providerExists in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/help_topics/src/HelpTopicPluginManager.php \Drupal\help_topics\HelpTopicPluginManager::providerExists()
  2. 9 core/modules/help_topics/src/HelpTopicPluginManager.php \Drupal\help_topics\HelpTopicPluginManager::providerExists()

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

core/modules/help_topics/src/HelpTopicPluginManager.php, line 160

Class

HelpTopicPluginManager
Provides the default help_topic manager.

Namespace

Drupal\help_topics

Code

protected function providerExists($provider) {
  return $this->moduleHandler
    ->moduleExists($provider) || $this->themeHandler
    ->themeExists($provider);
}