You are here

protected function StylePluginManager::providerExists in Styles API 8

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

src/Plugin/Style/StylePluginManager.php, line 57
Contains \Drupal\styles_api\Plugin\Style\StylePluginManager.

Class

StylePluginManager
Plugin type manager for all styles.

Namespace

Drupal\styles_api\Plugin\Style

Code

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