public function PopupMessageSubscriber::__construct in Popup message 8
PopupMessageSubscriber constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config: Popup_message config.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: Current Request.
\Drupal\Core\Path\PathMatcher $pathMatcher: Path matcher services.
\Drupal\Core\Session\AccountInterface $account: User account service.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: Module handler service.
File
- src/
EventSubscriber/ PopupMessageSubscriber.php, line 72
Class
- PopupMessageSubscriber
- Class PopupMessageSubscriber.
Namespace
Drupal\popup_message\EventSubscriberCode
public function __construct(ConfigFactoryInterface $config, RequestStack $requestStack, PathMatcher $pathMatcher, AccountInterface $account, ModuleHandlerInterface $moduleHandler) {
$this->config = $config
->get('popup_message.settings');
$this->requestStack = $requestStack
->getCurrentRequest();
$this->pathMatcher = $pathMatcher;
$this->account = $account;
$this->moduleHandler = $moduleHandler;
}