You are here

protected function BlockStyleManager::providerExists in Block Style Plugins 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/BlockStyleManager.php \Drupal\block_style_plugins\Plugin\BlockStyleManager::providerExists()

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

src/Plugin/BlockStyleManager.php, line 60

Class

BlockStyleManager
Provides the Block style plugin manager.

Namespace

Drupal\block_style_plugins\Plugin

Code

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