Skip to content

Commit

Permalink
Add PapayaPluginEditor::getContent() for BC
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWeinert committed May 28, 2018
1 parent bc316cf commit ec27875
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/system/Papaya/Plugin/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,24 @@ public function __construct(PapayaPluginEditableData $data) {
}

/**
* Return the stored content object.
* Return the stored data object.
*
* @return PapayaPluginEditableData
*/
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
Expand Down

0 comments on commit ec27875

Please sign in to comment.