| 1 | <?php |
||
| 20 | abstract class AbstractObjectItemAction extends SavableComponent implements ObjectItemActionInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * The message that should be displayed to the user after the action is performed. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $message; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | public static function isDestructive(): bool |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritdoc |
||
| 39 | */ |
||
| 40 | public function getTriggerLabel(): string |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritdoc |
||
| 47 | */ |
||
| 48 | public function getTriggerHtml() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritdoc |
||
| 55 | */ |
||
| 56 | public function getConfirmationMessage() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @inheritdoc |
||
| 62 | */ |
||
| 63 | public function performAction( |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @inheritdoc |
||
| 73 | */ |
||
| 74 | public function getMessage() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Sets the message that should be displayed to the user after the action is performed. |
||
| 81 | * |
||
| 82 | * @param string $message The message that should be displayed to the user after the action is performed. |
||
| 83 | */ |
||
| 84 | protected function setMessage(string $message) |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @inheritdoc |
||
| 91 | */ |
||
| 92 | public function attributes() |
||
| 101 | } |
||
| 102 |