| 1 | <?php |
||
| 16 | abstract class AbstractObjectItemAction extends SavableComponent implements ObjectItemActionInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The message that should be displayed to the user after the action is performed. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $message; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | */ |
||
| 28 | public static function isDestructive(): bool |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritdoc |
||
| 35 | */ |
||
| 36 | public function getTriggerLabel(): string |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritdoc |
||
| 43 | */ |
||
| 44 | public function getTriggerHtml() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | */ |
||
| 52 | public function getConfirmationMessage() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @inheritdoc |
||
| 58 | */ |
||
| 59 | public function performAction( |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @inheritdoc |
||
| 69 | */ |
||
| 70 | public function getMessage() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Sets the message that should be displayed to the user after the action is performed. |
||
| 77 | * |
||
| 78 | * @param string $message The message that should be displayed to the user after the action is performed. |
||
| 79 | */ |
||
| 80 | protected function setMessage(string $message) |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @inheritdoc |
||
| 87 | */ |
||
| 88 | public function attributes() |
||
| 97 | } |
||
| 98 |