Merge pull request #12285 from eileenmcnaughton/master
[civicrm-core.git] / CRM / Mailing / Tokens.php
index 1c777ae05bf8bec3721ed25b89d0a4a97f44a43d..330913b042d0ac7efef8bcdd1e53b73edb8fbe51 100644 (file)
@@ -2,9 +2,9 @@
 
 /*
  +--------------------------------------------------------------------+
- | 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.                                    |
  |                                                                    |
@@ -64,6 +64,14 @@ class CRM_Mailing_Tokens extends \Civi\Token\AbstractTokenSubscriber {
     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'])