function TourInterface::hasMatchingRoute
Same name in other branches
- 9 core/modules/tour/src/TourInterface.php \Drupal\tour\TourInterface::hasMatchingRoute()
- 8.9.x core/modules/tour/src/TourInterface.php \Drupal\tour\TourInterface::hasMatchingRoute()
- 11.x 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\tourCode
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.