public function RouteWrapper::__construct in Drupal 7 to 8/9 Module Upgrader 8
Same name in this branch
- 8 src/Routing/Drupal7/RouteWrapper.php \Drupal\drupalmoduleupgrader\Routing\Drupal7\RouteWrapper::__construct()
- 8 src/Routing/Drupal8/RouteWrapper.php \Drupal\drupalmoduleupgrader\Routing\Drupal8\RouteWrapper::__construct()
Constructs a Route object.
File
- src/
Routing/ Drupal7/ RouteWrapper.php, line 43
Class
- RouteWrapper
- Encapsulates a Drupal 7 route (including the link, if any).
Namespace
Drupal\drupalmoduleupgrader\Routing\Drupal7Code
public function __construct($path, array $item) {
$this->path = new PathUtility($path);
// Merge in hook_menu() defaults to normalize things.
$item += [
'title callback' => 't',
'title arguments' => [],
'access callback' => 'user_access',
'access arguments' => [],
'page arguments' => [],
'type' => 'MENU_NORMAL_ITEM',
];
parent::__construct($item);
}