function DefaultPluginManager::providerExists

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::providerExists()
  2. 8.9.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::providerExists()
  3. 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.
5 methods override DefaultPluginManager::providerExists()
BreakpointManager::providerExists in core/modules/breakpoint/src/BreakpointManager.php
Determines if the provider of a definition exists.
ComponentPluginManager::providerExists in core/modules/sdc/src/ComponentPluginManager.php
Determines if the provider of a definition exists.
ComponentPluginManager::providerExists in core/lib/Drupal/Core/Theme/ComponentPluginManager.php
Determines if the provider of a definition exists.
HelpTopicPluginManager::providerExists in core/modules/help/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 396

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.