5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
8 * Provides an interface defining a tour entity.
10 interface TourInterface extends ConfigEntityInterface {
13 * The routes that this tour will appear on.
16 * Returns array of routes for the tour.
18 public function getRoutes();
21 * Whether the tour matches a given set of route parameters.
23 * @param string $route_name
24 * The route name the parameters are for.
25 * @param array $route_params
26 * Associative array of raw route params.
29 * TRUE if the tour matches the route parameters.
31 public function hasMatchingRoute($route_name, $route_params);
37 * The identifier of the tip.
39 * @return \Drupal\tour\TipPluginInterface
42 public function getTip($id);
45 * Returns the tips for this tour.
48 * An array of tip plugins.
50 public function getTips();
53 * Gets the module this tour belongs to.
56 * The module this tour belongs to.
58 public function getModule();
61 * Resets the statically cached keyed routes.
63 public function resetKeyedRoutes();