public function GoogleAnalyticsCounterFilter::__construct in Google Analytics Counter 8.3
Constructs a new SiteMaintenanceModeForm.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path.
\Drupal\Core\Path\AliasManagerInterface $alias_manager: An alias manager for looking up the system path.
\Drupal\Core\State\StateInterface $state: The state of the drupal site.
\Drupal\google_analytics_counter\GoogleAnalyticsCounterAppManagerInterface $app_manager: Google Analytics Counter App Manager object.
Overrides FilterBase::__construct
File
- src/
Plugin/ Filter/ GoogleAnalyticsCounterFilter.php, line 72
Class
- GoogleAnalyticsCounterFilter
- Add filter to show google analytics counter number.
Namespace
Drupal\google_analytics_counter\Plugin\FilterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, CurrentPathStack $current_path, AliasManagerInterface $alias_manager, StateInterface $state, GoogleAnalyticsCounterAppManagerInterface $app_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentPath = $current_path;
$this->aliasManager = $alias_manager;
$this->state = $state;
$this->appManager = $app_manager;
}