public function LinkController::__construct in Colossal Menu 8
Same name and namespace in other branches
- 2.x src/Controller/LinkController.php \Drupal\colossal_menu\Controller\LinkController::__construct()
LinkController constructor.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: Colossal Menu Link storage.
\Drupal\Core\Entity\EntityStorageInterface $type_storage: Colossal Menu Link Type storage.
\Drupal\Core\Routing\RouteMatchInterface $route_match: Current route match.
File
- src/
Controller/ LinkController.php, line 54
Class
- LinkController
- Class LinkAddController.
Namespace
Drupal\colossal_menu\ControllerCode
public function __construct(EntityStorageInterface $storage, EntityStorageInterface $type_storage, RouteMatchInterface $route_match) {
$this->storage = $storage;
$this->typeStorage = $type_storage;
$this->routeMatch = $route_match;
}