You are here

public function ModalPage::__construct in Modal 8

Same name and namespace in other branches
  1. 8.3 src/ModalPage.php \Drupal\modal_page\ModalPage::__construct()
  2. 8.2 src/ModalPage.php \Drupal\modal_page\ModalPage::__construct()

File

src/ModalPage.php, line 39

Class

ModalPage
Modal Page Class.

Namespace

Drupal\modal_page

Code

public function __construct(ConfigFactory $config_factory, RequestStack $request_stack, PathMatcherInterface $path_matcher) {
  $this->pathMatcher = $path_matcher;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->configFactory = $config_factory;
}