You are here

protected function TwigExtensionBase::getCurrentRouteMatch in Bamboo Twig 8.3

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

Return the current route match.

Return value

\Drupal\Core\Routing\RouteMatchInterface Return the current route match.

File

src/TwigExtension/TwigExtensionBase.php, line 37

Class

TwigExtensionBase
Provides a Twig Extension Lazy Service Injection.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

protected function getCurrentRouteMatch() {
  return $this->container
    ->get('current_route_match');
}