You are here

public function LinkController::__construct in Colossal Menu 8

Same name and namespace in other branches
  1. 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\Controller

Code

public function __construct(EntityStorageInterface $storage, EntityStorageInterface $type_storage, RouteMatchInterface $route_match) {
  $this->storage = $storage;
  $this->typeStorage = $type_storage;
  $this->routeMatch = $route_match;
}