function IconPackManager::providerExists

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

core/lib/Drupal/Core/Theme/Icon/Plugin/IconPackManager.php, line 368

Class

IconPackManager
Defines an icon pack plugin manager to deal with icons.

Namespace

Drupal\Core\Theme\Icon\Plugin

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.