WellCommerce\Bundle\CoreBundle\Twig\Extension\DynamicRoutingExtension::checkRouteIsActive PHP Method

checkRouteIsActive() public method

public checkRouteIsActive ( string $route ) : boolean
$route string
return boolean
    public function checkRouteIsActive(string $route) : bool
    {
        $currentRoute = $this->requestHelper->getAttributesBagParam('_route');
        return $route === $currentRoute;
    }