From ec278756f820ce0ed13a3c8daf8b71263df32893 Mon Sep 17 00:00:00 2001 From: Thomas Weinert Date: Mon, 28 May 2018 18:27:30 +0200 Subject: [PATCH] Add PapayaPluginEditor::getContent() for BC --- src/system/Papaya/Plugin/Editor.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/system/Papaya/Plugin/Editor.php b/src/system/Papaya/Plugin/Editor.php index 1a392a56c..6bfb2dd7b 100644 --- a/src/system/Papaya/Plugin/Editor.php +++ b/src/system/Papaya/Plugin/Editor.php @@ -42,7 +42,7 @@ public function __construct(PapayaPluginEditableData $data) { } /** - * Return the stored content object. + * Return the stored data object. * * @return PapayaPluginEditableData */ @@ -50,6 +50,16 @@ public function getData() { return $this->_data; } + /** + * Return the stored data object - bc for old API + * + * @deprecated + * @return PapayaPluginEditableData + */ + public function getContent() { + return $this->getData(); + } + /** * The context specifies a parameter status needed to reach the editor/dialog. These * parameters need to be added to links and dialogs