You are here

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

Returns if this route exposes a link of any kind.

Return value

bool

File

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

Class

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

Namespace

Drupal\drupalmoduleupgrader\Routing\Drupal7

Code

public function hasLink() {
  return $this
    ->isLink() || $this
    ->isLocalTask() || $this
    ->isDefaultLocalTask() || $this
    ->isLocalAction();
}