You are here

protected function MiconDiscoveryManager::providerExists in Micon 2.x

Same name and namespace in other branches
  1. 8 src/MiconDiscoveryManager.php \Drupal\micon\MiconDiscoveryManager::providerExists()

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

src/MiconDiscoveryManager.php, line 100

Class

MiconDiscoveryManager
Provides the default micon.icon manager.

Namespace

Drupal\micon

Code

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