1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Modules\Nodes;
13
14 use ICanBoogie\I18n\FormattedString;
15
16 class DeleteOperation extends \ICanBoogie\DeleteOperation
17 {
18 19 20
21 protected function process()
22 {
23 $title = $this->record->title;
24 $rc = parent::process();
25
26 if ($rc)
27 {
28 $this->response->message = new FormattedString
29 (
30 '%title has been deleted from %module.', [
31
32 'title' => \ICanBoogie\shorten($title),
33 'module' => $this->module->title
34
35 ]
36 );
37 }
38
39 return $rc;
40 }
41 }