You are here

public function RouteWrapper::unwrap in Drupal 7 to 8/9 Module Upgrader 8

Same name in this branch
  1. 8 src/Routing/Drupal7/RouteWrapper.php \Drupal\drupalmoduleupgrader\Routing\Drupal7\RouteWrapper::unwrap()
  2. 8 src/Routing/Drupal8/RouteWrapper.php \Drupal\drupalmoduleupgrader\Routing\Drupal8\RouteWrapper::unwrap()

Returns the original, unwrapped route.

Return value

mixed

Overrides RouteWrapperInterface::unwrap

File

src/Routing/Drupal7/RouteWrapper.php, line 89

Class

RouteWrapper
Encapsulates a Drupal 7 route (including the link, if any).

Namespace

Drupal\drupalmoduleupgrader\Routing\Drupal7

Code

public function unwrap() {
  return $this
    ->toArray();
}