public function SimpleMegaMenuAccessCanonicalPageSubscriber::__construct in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/EventSubscriber/SimpleMegaMenuAccessCanonicalPageSubscriber.php \Drupal\simple_megamenu\EventSubscriber\SimpleMegaMenuAccessCanonicalPageSubscriber::__construct()
Constructor.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator.
File
- src/
EventSubscriber/ SimpleMegaMenuAccessCanonicalPageSubscriber.php, line 35
Class
- SimpleMegaMenuAccessCanonicalPageSubscriber
- Class SimpleMegaMenuAccessCanonicalPageSubscriber.
Namespace
Drupal\simple_megamenu\EventSubscriberCode
public function __construct(AccountInterface $current_user, UrlGeneratorInterface $url_generator) {
$this->currentUser = $current_user;
}