| 1 | <?php |
||
| 14 | class Draftdel extends AbstractAction { |
||
| 15 | |||
| 16 | /** @inheritdoc */ |
||
| 17 | public function minimumPermission() { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Delete an existing draft if any |
||
| 23 | * |
||
| 24 | * Reads draft information from $INFO. Redirects to show, afterwards. |
||
| 25 | * |
||
| 26 | * @throws ActionAbort |
||
| 27 | */ |
||
| 28 | public function preProcess() { |
||
| 35 | |||
| 36 | } |
||
| 37 |
If you suppress an error, we recommend checking for the error condition explicitly: