You are here

trait DrupalSettingCommandsTrait in Googalytics - Google Analytics 8

Trait AnalyticsCommandSetTrait.

Trait for implementing DrupalSettingCommandsInterface.

Hierarchy

File

src/AnalyticsCommand/DrupalSettingCommandsTrait.php, line 10

Namespace

Drupal\ga\AnalyticsCommand
View source
trait DrupalSettingCommandsTrait {

  /**
   * Priority integer.
   *
   * @var int
   */
  protected $priority;

  /**
   * An integer value for sorting by priority.
   *
   * @return int
   *   The priority value.
   */
  public function getPriority() {
    return $this->priority;
  }

  /**
   * An array of commands to be sent to Google Analytics.
   *
   * @return array
   *   An array of command values.
   */
  public function getSettingCommands() {
    return [];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DrupalSettingCommandsTrait::$priority protected property Priority integer.
DrupalSettingCommandsTrait::getPriority public function An integer value for sorting by priority.
DrupalSettingCommandsTrait::getSettingCommands public function An array of commands to be sent to Google Analytics. 2