You are here

public function RequirePlugin::__construct in Googalytics - Google Analytics 8

Create constructor.

Parameters

string $plugin_name: The plugin name.

array $fields_object: A map of values for the command's fieldsObject parameter.

string $tracker_name: The tracker name (optional).

int $priority: The command priority.

Overrides Generic::__construct

File

src/AnalyticsCommand/RequirePlugin.php, line 33

Class

RequirePlugin
Class RequirePlugin.

Namespace

Drupal\ga\AnalyticsCommand

Code

public function __construct($plugin_name, array $fields_object = [], $tracker_name = NULL, $priority = self::DEFAULT_PRIORITY) {
  parent::__construct('require', $fields_object, $tracker_name, $priority);
  $this->pluginName = $plugin_name;
}