You are here

protected function TwigExtensionBase::getPluginManagerBlock in Bamboo Twig 8.3

Same name and namespace in other branches
  1. 8.5 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getPluginManagerBlock()
  2. 8.2 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getPluginManagerBlock()
  3. 8.4 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getPluginManagerBlock()

Manages discovery and instantiation of block plugins.

Return value

\Drupal\Core\Block\BlockManagerInterface Return the block manager.

File

src/TwigExtension/TwigExtensionBase.php, line 47

Class

TwigExtensionBase
Provides a Twig Extension Lazy Service Injection.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

protected function getPluginManagerBlock() {
  return $this->container
    ->get('plugin.manager.block');
}