You are here

protected function DefaultPluginManager::providerExists in Drupal 8

Same name and namespace in other branches
  1. 9 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 376

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

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