/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017 |
+ | Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
return !empty($processor->context['mailingId']) || !empty($processor->context['mailing']);
}
+ /**
+ * Prefetch tokens.
+ *
+ * @param \Civi\Token\Event\TokenValueEvent $e
+ *
+ * @return array
+ * @throws \Exception
+ */
public function prefetch(\Civi\Token\Event\TokenValueEvent $e) {
$processor = $e->getTokenProcessor();
$mailing = isset($processor->context['mailing'])