From 7dd24a560417958e04675ba9343ed08d30d2341d Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Wed, 31 Aug 2022 16:38:38 +0100 Subject: [PATCH] Remove method getActionAttribute --- CRM/Core/Selector/Base.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/CRM/Core/Selector/Base.php b/CRM/Core/Selector/Base.php index e962019ac1..2817e7a6df 100644 --- a/CRM/Core/Selector/Base.php +++ b/CRM/Core/Selector/Base.php @@ -41,27 +41,6 @@ class CRM_Core_Selector_Base { */ protected $_key; - /** - * This function gets the attribute for the action that. - * it matches. - * - * @param string $match the action to match against - * @param string $attribute the attribute to return ( name, link, title ) - * - * @return string - * the attribute that matches the action if any - */ - public function getActionAttribute($match, $attribute = 'name') { - $links = &$this->links(); - - foreach ($link as $action => $item) { - if ($match & $action) { - return $item[$attribute]; - } - } - return NULL; - } - /** * This is a static virtual function returning reference on links array. Each * inherited class must redefine this function -- 2.25.1