Loading google_analytics.services.yml +7 −7 Original line number Diff line number Diff line Loading @@ -11,37 +11,37 @@ services: # Google Analytics Event Subscribers google_analytics.events.messages: class: '\Drupal\google_analytics\EventSubscriber\GoogleAnalyticsEvents\DrupalMessage' class: Drupal\google_analytics\EventSubscriber\GoogleAnalyticsEvents\DrupalMessage arguments: [ '@config.factory', '@google_analytics.accounts', '@messenger' ] tags: - { name: 'event_subscriber' } google_analytics.pagepath.content_translation: class: '\Drupal\google_analytics\EventSubscriber\PagePath\ContentTranslation' class: Drupal\google_analytics\EventSubscriber\PagePath\ContentTranslation arguments: [ '@config.factory', '@request_stack', '@module_handler', '@entity.repository' ] tags: - { name: 'event_subscriber' } google_analytics.pagepath.http_status: class: '\Drupal\google_analytics\EventSubscriber\PagePath\HttpStatus' class: Drupal\google_analytics\EventSubscriber\PagePath\HttpStatus arguments: [ '@config.factory', '@request_stack' ] tags: - { name: 'event_subscriber' } google_analytics.pagepath.invalid_user_login: class: '\Drupal\google_analytics\EventSubscriber\PagePath\InvalidUserLogin' class: Drupal\google_analytics\EventSubscriber\PagePath\InvalidUserLogin arguments: [ '@request_stack', '@current_route_match' ] tags: - { name: 'event_subscriber' } google_analytics.pagepath.search: class: '\Drupal\google_analytics\EventSubscriber\PagePath\Search' class: Drupal\google_analytics\EventSubscriber\PagePath\Search arguments: [ '@config.factory', '@request_stack', '@module_handler', '@current_route_match' ] tags: - { name: 'event_subscriber' } google_analytics.config.default_config: class: '\Drupal\google_analytics\EventSubscriber\GoogleAnalyticsConfig\DefaultConfig' class: Drupal\google_analytics\EventSubscriber\GoogleAnalyticsConfig\DefaultConfig arguments: [ '@config.factory', '@google_analytics.accounts', '@current_user' ] tags: - { name: 'event_subscriber' } google_analytics.config.custom_config: class: '\Drupal\google_analytics\EventSubscriber\GoogleAnalyticsConfig\CustomConfig' class: Drupal\google_analytics\EventSubscriber\GoogleAnalyticsConfig\CustomConfig arguments: [ '@config.factory', '@current_user', '@request_stack', '@token' ] tags: - { name: 'event_subscriber' } No newline at end of file src/EventSubscriber/PagePath/ContentTranslation.php +2 −2 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace Drupal\google_analytics\EventSubscriber\PagePath; use Drupal\Component\Serialization\Json; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Entity\EntityRepositoryInterface; use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Url; use Drupal\google_analytics\Event\PagePathEvent; use Drupal\google_analytics\Constants\GoogleAnalyticsEvents; Loading Loading @@ -58,7 +58,7 @@ class ContentTranslation implements EventSubscriberInterface { * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * Config Factory for Google Analytics Settings. */ public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request, ModuleHandler $module_handler, EntityRepositoryInterface $entity_repsoitory) { public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request, ModuleHandlerInterface $module_handler, EntityRepositoryInterface $entity_repsoitory) { $this->config = $config_factory->get('google_analytics.settings'); $this->request = $request->getCurrentRequest(); $this->moduleHandler = $module_handler; Loading src/EventSubscriber/PagePath/Search.php +2 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ namespace Drupal\google_analytics\EventSubscriber\PagePath; use Drupal\Component\Serialization\Json; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Routing\CurrentRouteMatch; use Drupal\Core\Url; use Drupal\google_analytics\Event\PagePathEvent; Loading Loading @@ -45,7 +45,7 @@ class Search implements EventSubscriberInterface { * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * Config Factory for Google Analytics Settings. */ public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request, ModuleHandler $module_handler, CurrentRouteMatch $current_route) { public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request, ModuleHandlerInterface $module_handler, CurrentRouteMatch $current_route) { $this->config = $config_factory->get('google_analytics.settings'); $this->request = $request->getCurrentRequest(); $this->moduleHandler = $module_handler; Loading Loading
google_analytics.services.yml +7 −7 Original line number Diff line number Diff line Loading @@ -11,37 +11,37 @@ services: # Google Analytics Event Subscribers google_analytics.events.messages: class: '\Drupal\google_analytics\EventSubscriber\GoogleAnalyticsEvents\DrupalMessage' class: Drupal\google_analytics\EventSubscriber\GoogleAnalyticsEvents\DrupalMessage arguments: [ '@config.factory', '@google_analytics.accounts', '@messenger' ] tags: - { name: 'event_subscriber' } google_analytics.pagepath.content_translation: class: '\Drupal\google_analytics\EventSubscriber\PagePath\ContentTranslation' class: Drupal\google_analytics\EventSubscriber\PagePath\ContentTranslation arguments: [ '@config.factory', '@request_stack', '@module_handler', '@entity.repository' ] tags: - { name: 'event_subscriber' } google_analytics.pagepath.http_status: class: '\Drupal\google_analytics\EventSubscriber\PagePath\HttpStatus' class: Drupal\google_analytics\EventSubscriber\PagePath\HttpStatus arguments: [ '@config.factory', '@request_stack' ] tags: - { name: 'event_subscriber' } google_analytics.pagepath.invalid_user_login: class: '\Drupal\google_analytics\EventSubscriber\PagePath\InvalidUserLogin' class: Drupal\google_analytics\EventSubscriber\PagePath\InvalidUserLogin arguments: [ '@request_stack', '@current_route_match' ] tags: - { name: 'event_subscriber' } google_analytics.pagepath.search: class: '\Drupal\google_analytics\EventSubscriber\PagePath\Search' class: Drupal\google_analytics\EventSubscriber\PagePath\Search arguments: [ '@config.factory', '@request_stack', '@module_handler', '@current_route_match' ] tags: - { name: 'event_subscriber' } google_analytics.config.default_config: class: '\Drupal\google_analytics\EventSubscriber\GoogleAnalyticsConfig\DefaultConfig' class: Drupal\google_analytics\EventSubscriber\GoogleAnalyticsConfig\DefaultConfig arguments: [ '@config.factory', '@google_analytics.accounts', '@current_user' ] tags: - { name: 'event_subscriber' } google_analytics.config.custom_config: class: '\Drupal\google_analytics\EventSubscriber\GoogleAnalyticsConfig\CustomConfig' class: Drupal\google_analytics\EventSubscriber\GoogleAnalyticsConfig\CustomConfig arguments: [ '@config.factory', '@current_user', '@request_stack', '@token' ] tags: - { name: 'event_subscriber' } No newline at end of file
src/EventSubscriber/PagePath/ContentTranslation.php +2 −2 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace Drupal\google_analytics\EventSubscriber\PagePath; use Drupal\Component\Serialization\Json; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Entity\EntityRepositoryInterface; use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Url; use Drupal\google_analytics\Event\PagePathEvent; use Drupal\google_analytics\Constants\GoogleAnalyticsEvents; Loading Loading @@ -58,7 +58,7 @@ class ContentTranslation implements EventSubscriberInterface { * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * Config Factory for Google Analytics Settings. */ public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request, ModuleHandler $module_handler, EntityRepositoryInterface $entity_repsoitory) { public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request, ModuleHandlerInterface $module_handler, EntityRepositoryInterface $entity_repsoitory) { $this->config = $config_factory->get('google_analytics.settings'); $this->request = $request->getCurrentRequest(); $this->moduleHandler = $module_handler; Loading
src/EventSubscriber/PagePath/Search.php +2 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ namespace Drupal\google_analytics\EventSubscriber\PagePath; use Drupal\Component\Serialization\Json; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Routing\CurrentRouteMatch; use Drupal\Core\Url; use Drupal\google_analytics\Event\PagePathEvent; Loading Loading @@ -45,7 +45,7 @@ class Search implements EventSubscriberInterface { * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * Config Factory for Google Analytics Settings. */ public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request, ModuleHandler $module_handler, CurrentRouteMatch $current_route) { public function __construct(ConfigFactoryInterface $config_factory, RequestStack $request, ModuleHandlerInterface $module_handler, CurrentRouteMatch $current_route) { $this->config = $config_factory->get('google_analytics.settings'); $this->request = $request->getCurrentRequest(); $this->moduleHandler = $module_handler; Loading