You are here

public function Router::getAllLinks in Drupal 7 to 8/9 Module Upgrader 8

Gets all items which expose a link of any kind.

Return value

static

File

src/Routing/Drupal7/Router.php, line 33

Class

Router
Represents a collection of Drupal 7 routes, i.e., the result of hook_menu().

Namespace

Drupal\drupalmoduleupgrader\Routing\Drupal7

Code

public function getAllLinks() {
  return $this
    ->filter(function (RouteWrapper $route) {
    return $route
      ->hasLink();
  });
}