You are here

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

Returns if this route is a contextual link.

Return value

bool

File

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

Class

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

Namespace

Drupal\drupalmoduleupgrader\Routing\Drupal7

Code

public function isContextualLink() {
  return $this
    ->isLocalAction() && $this
    ->containsKey('context') && $this
    ->get('context') == 'MENU_CONTEXT_INLINE';
}