You are here

interface AnalyticsServiceInterface in Analytics 7

Hierarchy

Expanded class hierarchy of AnalyticsServiceInterface

All classes that implement AnalyticsServiceInterface

File

lib/AnalyticsServiceInterface.php, line 3

View source
interface AnalyticsServiceInterface {

  /**
   * Returns the machine name of the analytics plugin instance.
   *
   * @return string
   */
  public function getMachineName();

  /**
   * Returns the label of the plugin instance.
   *
   * @return string
   */
  public function getLabel();

  /**
   * Returns the description of the plugin instance.
   *
   * @return string
   */
  public function getDescription();

  /**
   * Returns the type of the plugin instance.
   *
   * @return string
   */
  public function getService();

  /**
   *
   * @return array
   */
  public function getConfiguration();

  /**
   * @return array
   */
  public function defaultConfiguration();

  /**
   * Form constructor.
   *
   * @param array $form
   *   An associative array containing the initial structure of the plugin form.
   * @param array $form_state
   *   The current state of the complete form.
   *
   * @return array
   *   The form structure.
   */
  public function buildConfigurationForm($form, &$form_state);

  /**
   * Determines if the current service can track the current request.
   *
   * @param array $context
   *
   * @return bool
   *   TRUE if the service should output on the current page, otherwise FALSE.
   */
  public function canTrack(array $context);

  /**
   * Returns the output of the analytics service.
   *
   * @param array $context
   *
   * @return array
   *   A structured, renderable array.
   */
  public function getOutput(array $context);

  /**
   * @return array
   */
  public function getCacheableUrls();

}

Members

Namesort descending Modifiers Type Description Overrides
AnalyticsServiceInterface::buildConfigurationForm public function Form constructor. 1
AnalyticsServiceInterface::canTrack public function Determines if the current service can track the current request. 1
AnalyticsServiceInterface::defaultConfiguration public function 1
AnalyticsServiceInterface::getCacheableUrls public function 1
AnalyticsServiceInterface::getConfiguration public function 1
AnalyticsServiceInterface::getDescription public function Returns the description of the plugin instance. 1
AnalyticsServiceInterface::getLabel public function Returns the label of the plugin instance. 1
AnalyticsServiceInterface::getMachineName public function Returns the machine name of the analytics plugin instance. 1
AnalyticsServiceInterface::getOutput public function Returns the output of the analytics service. 5
AnalyticsServiceInterface::getService public function Returns the type of the plugin instance. 1