public function MandrillAPI::getTagTimeSeries in Mandrill 8
Gets recent history for a tag.
Parameters
string $tag: The tag as a string.
Return value
array Array of tag history.
Overrides MandrillAPIInterface::getTagTimeSeries
File
- src/
MandrillAPI.php, line 209
Class
- MandrillAPI
- Service class to integrate with Mandrill.
Namespace
Drupal\mandrillCode
public function getTagTimeSeries($tag) {
$data = array();
try {
if ($mandrill = $this
->getAPIObject()) {
$data = $mandrill->tags
->timeSeries($tag);
}
} catch (\Exception $e) {
\Drupal::messenger()
->addError(t('Mandrill: %message', array(
'%message' => $e
->getMessage(),
)));
$this->log
->error($e
->getMessage());
}
return $data;
}