You are here

protected function BootstrapLayoutsPluginManager::providerExists in Bootstrap Layouts 8.4

Same name and namespace in other branches
  1. 8.5 src/BootstrapLayoutsPluginManager.php \Drupal\bootstrap_layouts\BootstrapLayoutsPluginManager::providerExists()

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

1 call to BootstrapLayoutsPluginManager::providerExists()
BootstrapLayoutsManager::findDefinitions in src/BootstrapLayoutsManager.php
Finds plugin definitions.

File

src/BootstrapLayoutsPluginManager.php, line 113

Class

BootstrapLayoutsPluginManager

Namespace

Drupal\bootstrap_layouts

Code

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