From 9813cbedde2b77c70e0b9d28d6da74996d9a8858 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 20 Jul 2022 00:57:31 -0700 Subject: [PATCH] (REF) CiviEventDispacher - Enable getDispatchPolicy() --- Civi/Core/CiviEventDispatcher.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Civi/Core/CiviEventDispatcher.php b/Civi/Core/CiviEventDispatcher.php index d4564e5b4c..8d7240fe0f 100644 --- a/Civi/Core/CiviEventDispatcher.php +++ b/Civi/Core/CiviEventDispatcher.php @@ -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. -- 2.25.1