You are here

protected function DefaultPluginManager::providerExists in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::providerExists()
  2. 10 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::providerExists()

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

3 calls to DefaultPluginManager::providerExists()
DefaultPluginManager::findDefinitions in core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
Finds plugin definitions.
MigrateSourcePluginManager::findDefinitions in core/modules/migrate/src/Plugin/MigrateSourcePluginManager.php
Finds plugin definitions.
MigrationPluginManager::findDefinitions in core/modules/migrate/src/Plugin/MigrationPluginManager.php
Finds plugin definitions.
3 methods override DefaultPluginManager::providerExists()
BreakpointManager::providerExists in core/modules/breakpoint/src/BreakpointManager.php
Determines if the provider of a definition exists.
HelpTopicPluginManager::providerExists in core/modules/help_topics/src/HelpTopicPluginManager.php
Determines if the provider of a definition exists.
LayoutPluginManager::providerExists in core/lib/Drupal/Core/Layout/LayoutPluginManager.php
Determines if the provider of a definition exists.

File

core/lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 343

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

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