3 namespace Drupal\drupalmoduleupgrader\Routing;
6 * Common interface implemented by classes which wrap around Drupal 7 or
9 interface RouteWrapperInterface {
12 * Returns an identifier for this route.
16 public function getIdentifier();
19 * Returns a PathUtilityInterface implementation for the route.
21 * @return \Drupal\drupalmoduleupgrader\Utility\Path\PathUtilityInterface
23 public function getPath();
26 * Returns if this route has a parent.
30 public function hasParent();
33 * Gets the parent route, if there is one. The parent should also be wrapped.
37 public function getParent();
40 * Returns the original, unwrapped route.
44 public function unwrap();
47 * React to the router (i.e., the collection of routes defined by the
48 * module) being completely built.
50 * @param RouterBuiltEvent $event
53 public function onRouterBuilt(RouterBuiltEvent $event);