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