protected function TwigExtensionBase::getCurrentRouteMatch in Bamboo Twig 8.3
Same name and namespace in other branches
- 8.5 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getCurrentRouteMatch()
- 8.2 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getCurrentRouteMatch()
- 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\TwigExtensionCode
protected function getCurrentRouteMatch() {
return $this->container
->get('current_route_match');
}