You are here

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

Returns if this route is a local action.

Return value

bool

2 calls to RouteWrapper::isLocalAction()
RouteWrapper::hasLink in src/Routing/Drupal7/RouteWrapper.php
Returns if this route exposes a link of any kind.
RouteWrapper::isContextualLink in src/Routing/Drupal7/RouteWrapper.php
Returns if this route is a contextual link.

File

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

Class

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

Namespace

Drupal\drupalmoduleupgrader\Routing\Drupal7

Code

public function isLocalAction() {
  return $this
    ->get('type') == 'MENU_LOCAL_ACTION';
}