(REF) CiviEventDispacher - Enable getDispatchPolicy()
authorTim Otten <totten@civicrm.org>
Wed, 20 Jul 2022 07:57:31 +0000 (00:57 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 20 Jul 2022 08:41:15 +0000 (01:41 -0700)
Civi/Core/CiviEventDispatcher.php

index d4564e5b4c2504cdc7cd46be0e2188af3e5af0f0..8d7240fe0ffd251f7680e8a71c48b1de20c55db9 100644 (file)
@@ -334,12 +334,12 @@ class CiviEventDispatcher extends EventDispatcher {
     return $this;
   }
 
-  //  /**
-  //   * @return array|NULL
-  //   */
-  //  public function getDispatchPolicy() {
-  //    return  $this->dispatchPolicyRegex === NULL ? NULL : array_merge($this->dispatchPolicyExact, $this->dispatchPolicyRegex);
-  //  }
+  /**
+   * @return array|NULL
+   */
+  public function getDispatchPolicy() {
+    return $this->dispatchPolicyRegex === NULL ? NULL : array_merge($this->dispatchPolicyExact, $this->dispatchPolicyRegex);
+  }
 
   /**
    * Determine whether the dispatch policy applies to a given event.