public function RouteWrapper::isDefaultLocalTask in Drupal 7 to 8/9 Module Upgrader 8
Returns if this route is a default local task.
Return value
bool
1 call to RouteWrapper::isDefaultLocalTask()
- 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 194
Class
- RouteWrapper
- Encapsulates a Drupal 7 route (including the link, if any).
Namespace
Drupal\drupalmoduleupgrader\Routing\Drupal7Code
public function isDefaultLocalTask() {
return $this
->get('type') == 'MENU_DEFAULT_LOCAL_TASK';
}