You are here

public function AMPService::isAmpRoute in Accelerated Mobile Pages (AMP) 8.3

Passthrough to check route without also loading AmpContext.

File

src/Service/AMPService.php, line 150

Class

AMPService
Class AMPService.

Namespace

Drupal\amp\Service

Code

public function isAmpRoute(RouteMatchInterface $routeMatch = NULL, $entity = NULL, $checkTheme = TRUE) {
  return $this->ampContext
    ->isAmpRoute($routeMatch, $entity, $checkTheme);
}