You are here

protected function LayoutPluginManager::providerExists in Layout Plugin (obsolete, use core's Layout Discovery) 8

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

src/Plugin/Layout/LayoutPluginManager.php, line 61

Class

LayoutPluginManager
Plugin type manager for all layouts.

Namespace

Drupal\layout_plugin\Plugin\Layout

Code

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