Switch to autoLinks for PaymentProcessor page
authorcolemanw <coleman@civicrm.org>
Sun, 25 Jun 2023 01:36:40 +0000 (20:36 -0500)
committercolemanw <coleman@civicrm.org>
Sun, 25 Jun 2023 15:31:54 +0000 (11:31 -0400)
CRM/Admin/Page/PaymentProcessor.php

index febc20e15ac5edc3ff7c23cd2c428e2f466aaf9c..523262b6d3044c8ef83910a6b785e7c118e7ef2b 100644 (file)
@@ -22,13 +22,6 @@ use Civi\Api4\PaymentProcessor;
  */
 class CRM_Admin_Page_PaymentProcessor extends CRM_Core_Page_Basic {
 
-  /**
-   * The action links that we need to display for the browse screen.
-   *
-   * @var array
-   */
-  public static $_links = NULL;
-
   /**
    * Get BAO Name.
    *
@@ -39,42 +32,6 @@ class CRM_Admin_Page_PaymentProcessor extends CRM_Core_Page_Basic {
     return 'CRM_Financial_BAO_PaymentProcessor';
   }
 
-  /**
-   * Get action Links.
-   *
-   * @return array
-   *   (reference) of action links
-   */
-  public function &links() {
-    if (!(self::$_links)) {
-      self::$_links = [
-        CRM_Core_Action::UPDATE => [
-          'name' => ts('Edit'),
-          'url' => 'civicrm/admin/paymentProcessor/edit',
-          'qs' => 'action=update&id=%%id%%&reset=1',
-          'title' => ts('Edit Payment Processor'),
-        ],
-        CRM_Core_Action::DISABLE => [
-          'name' => ts('Disable'),
-          'ref' => 'crm-enable-disable',
-          'title' => ts('Disable Payment Processor'),
-        ],
-        CRM_Core_Action::ENABLE => [
-          'name' => ts('Enable'),
-          'ref' => 'crm-enable-disable',
-          'title' => ts('Enable Payment Processor'),
-        ],
-        CRM_Core_Action::DELETE => [
-          'name' => ts('Delete'),
-          'url' => 'civicrm/admin/paymentProcessor/edit',
-          'qs' => 'action=delete&id=%%id%%',
-          'title' => ts('Delete Payment Processor'),
-        ],
-      ];
-    }
-    return self::$_links;
-  }
-
   /**
    * Run the page.
    *