You are here

protected function TwigExtensionsPluginManager::providerExists in Twig Extender 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/Twig/TwigExtensionsPluginManager.php \Drupal\twig_extender\Plugin\Twig\TwigExtensionsPluginManager::providerExists()
  2. 8.2 src/Plugin/Twig/TwigExtensionsPluginManager.php \Drupal\twig_extender\Plugin\Twig\TwigExtensionsPluginManager::providerExists()
  3. 8.3 src/Plugin/Twig/TwigExtensionsPluginManager.php \Drupal\twig_extender\Plugin\Twig\TwigExtensionsPluginManager::providerExists()
  4. 4.x src/Plugin/Twig/TwigExtensionsPluginManager.php \Drupal\twig_extender\Plugin\Twig\TwigExtensionsPluginManager::providerExists()

Determines if the provider of a definition exists.

Return value

bool TRUE if provider exists, FALSE otherwise.

Overrides DefaultPluginManager::providerExists

File

src/Plugin/Twig/TwigExtensionsPluginManager.php, line 54

Class

TwigExtensionsPluginManager
Plugin type manager for all twig plugins.

Namespace

Drupal\twig_extender\Plugin\Twig

Code

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