public function RouteWrapper::isLocalTask in Drupal 7 to 8/9 Module Upgrader 8
Returns if this route is a local task (NOT a default local task).
Return value
bool
1 call to RouteWrapper::isLocalTask()
- RouteWrapper::hasLink in src/
Routing/ Drupal7/ RouteWrapper.php - Returns if this route exposes a link of any kind.
File
- src/
Routing/ Drupal7/ RouteWrapper.php, line 174
Class
- RouteWrapper
- Encapsulates a Drupal 7 route (including the link, if any).
Namespace
Drupal\drupalmoduleupgrader\Routing\Drupal7Code
public function isLocalTask() {
return $this
->get('type') == 'MENU_LOCAL_TASK';
}