You are here

public function MandrillAPI::getTagsAllTimeSeries in Mandrill 8

Gets recent history for all tags.

Return value

array Array of tag history.

Overrides MandrillAPIInterface::getTagsAllTimeSeries

1 method overrides MandrillAPI::getTagsAllTimeSeries()
MandrillTestAPI::getTagsAllTimeSeries in src/MandrillTestAPI.php
Gets recent history for all tags.

File

src/MandrillAPI.php, line 228

Class

MandrillAPI
Service class to integrate with Mandrill.

Namespace

Drupal\mandrill

Code

public function getTagsAllTimeSeries() {
  $data = array();
  try {
    if ($mandrill = $this
      ->getAPIObject()) {
      $data = $mandrill->tags
        ->allTimeSeries();
    }
  } catch (\Exception $e) {
    \Drupal::messenger()
      ->addError(t('Mandrill: %message', array(
      '%message' => $e
        ->getMessage(),
    )));
    $this->log
      ->error($e
      ->getMessage());
  }
  return $data;
}