You are here

protected function UiPatternsManager::providerExists in UI Patterns 8

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

src/UiPatternsManager.php, line 106

Class

UiPatternsManager
Provides the default ui_patterns manager.

Namespace

Drupal\ui_patterns

Code

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