Pārlūkot izejas kodu

Removed publicly accessible method for supportsPreviewMode and made the variable public instead

Thanos Polymeneas 13 gadi atpakaļ
vecāks
revīzija
e5a23923ba
1 mainītis faili ar 1 papildinājumiem un 13 dzēšanām
  1. 1 13
      Admin/Admin.php

+ 1 - 13
Admin/Admin.php

@@ -389,7 +389,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
      * 
      * 
      * @var boolean	
      * @var boolean	
      */
      */
-    protected $supportsPreviewMode = false;
+    public $supportsPreviewMode = false;
 
 
     /**
     /**
      * Roles and permissions per role
      * Roles and permissions per role
@@ -2414,18 +2414,6 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
         return $this->labelTranslatorStrategy;
         return $this->labelTranslatorStrategy;
     }
     }
     
     
-    /**
-     * Returning true will enable preview mode for
-     * the target entity and show a preview button
-     * when editing/creating an entity
-     * 
-     * @return boolean
-     */
-    public function supportsPreviewMode()
-    {
-        return $this->supportsPreviewMode;
-    }
-    
     /**
     /**
      * Enables the preview template for the create/edit actions
      * Enables the preview template for the create/edit actions
      */
      */