You are here

protected function BreakpointManager::providerExists in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/breakpoint/src/BreakpointManager.php \Drupal\breakpoint\BreakpointManager::providerExists()

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

core/modules/breakpoint/src/BreakpointManager.php, line 148
Contains \Drupal\breakpoint\BreakpointManager.

Class

BreakpointManager
Defines a breakpoint plugin manager to deal with breakpoints.

Namespace

Drupal\breakpoint

Code

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