public function TourInterface::hasMatchingRoute in Drupal 10
Same name and namespace in other branches
- 8 core/modules/tour/src/TourInterface.php \Drupal\tour\TourInterface::hasMatchingRoute()
- 9 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);