function TourInterface::hasMatchingRoute

Same name in other branches
  1. 9 core/modules/tour/src/TourInterface.php \Drupal\tour\TourInterface::hasMatchingRoute()
  2. 8.9.x core/modules/tour/src/TourInterface.php \Drupal\tour\TourInterface::hasMatchingRoute()
  3. 10 core/modules/tour/src/TourInterface.php \Drupal\tour\TourInterface::hasMatchingRoute()

Whether the tour matches a given set of route parameters.

Parameters

string $route_name: The route name the parameters are for.

array $route_params: Associative array of raw route params.

Return value

bool TRUE if the tour matches the route parameters.

1 method overrides TourInterface::hasMatchingRoute()
Tour::hasMatchingRoute in core/modules/tour/src/Entity/Tour.php
Whether the tour matches a given set of route parameters.

File

core/modules/tour/src/TourInterface.php, line 31

Class

TourInterface
Provides an interface defining a tour entity.

Namespace

Drupal\tour

Code

public function hasMatchingRoute($route_name, $route_params);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.