You are here

protected function MiconDiscoveryManager::providerExists in Micon 8

Same name and namespace in other branches
  1. 2.x 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);
}