Make getSettingPageFilter() public so we can conditionally load resources in hooks
[civicrm-core.git] / CRM / Import / StateMachine.php
index 17329b8f28726d098b8001dfd8a466ca84722ab2..2f213198db610184c7efbb65f8afd75f8aedc3c5 100644 (file)
@@ -46,12 +46,12 @@ class CRM_Import_StateMachine extends CRM_Core_StateMachine {
     parent::__construct($controller, $action);
 
     $classType = str_replace('_Controller', '', get_class($controller));
-    $this->_pages = array(
+    $this->_pages = [
       $classType . '_Form_DataSource' => NULL,
       $classType . '_Form_MapField' => NULL,
       $classType . '_Form_Preview' => NULL,
       $classType . '_Form_Summary' => NULL,
-    );
+    ];
 
     $this->addSequentialPages($this->_pages, $action);
   }