Преглед на файлове

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

Thanos Polymeneas преди 13 години
родител
ревизия
a90d058a16
променени са 1 файла, в които са добавени 1 реда и са изтрити 13 реда
  1. 1 13
      Admin/Admin.php

+ 1 - 13
Admin/Admin.php

@@ -396,7 +396,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
      * 
      * @var boolean	
      */
-    protected $supportsPreviewMode = false;
+    public $supportsPreviewMode = false;
 
     /**
      * Roles and permissions per role
@@ -2516,18 +2516,6 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
         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
      */