protected function TwigExtensionsPluginManager::providerExists in Twig Extender 8
Same name and namespace in other branches
- 8.4 src/Plugin/Twig/TwigExtensionsPluginManager.php \Drupal\twig_extender\Plugin\Twig\TwigExtensionsPluginManager::providerExists()
- 8.2 src/Plugin/Twig/TwigExtensionsPluginManager.php \Drupal\twig_extender\Plugin\Twig\TwigExtensionsPluginManager::providerExists()
- 8.3 src/Plugin/Twig/TwigExtensionsPluginManager.php \Drupal\twig_extender\Plugin\Twig\TwigExtensionsPluginManager::providerExists()
- 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\TwigCode
protected function providerExists($provider) {
return $this->moduleHandler
->moduleExists($provider) || $this->themeHandler
->themeExists($provider);
}