You are here

public function Base::getMethod in GA Push 8

Get ga push method type.

Return value

string Ga push method (analytics, datalayer, etc).

4 calls to Base::getMethod()
Event::doExecute in src/Plugin/RulesAction/Event.php
Executes the action with the given context.
Exception::doExecute in src/Plugin/RulesAction/Exception.php
Executes the action with the given context.
PageView::doExecute in src/Plugin/RulesAction/PageView.php
Executes the action with the given context.
Social::doExecute in src/Plugin/RulesAction/Social.php
Executes the action with the given context.

File

src/Plugin/RulesAction/Base.php, line 18

Class

Base
Base class to ga push rule actions.

Namespace

Drupal\ga_push\Plugin\RulesAction

Code

public function getMethod() {

  // Retrieve selected method or the default one.
  $method = $this
    ->getContextValue('method');
  if (empty($method)) {
    $method = $this
      ->getDefaultMethod();
  }
  return $method;
}