function DefaultPluginManager::providerExists

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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 350

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.