| 1 | <?php |
||
| 19 | abstract class AbstractObjectAction extends SavableComponent implements ObjectActionInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * The message that should be displayed to the user after the action is performed. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $message; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @inheritdoc |
||
| 30 | */ |
||
| 31 | public static function isDestructive(): bool |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritdoc |
||
| 38 | */ |
||
| 39 | public function getTriggerLabel(): string |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritdoc |
||
| 46 | */ |
||
| 47 | public function getTriggerHtml() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @inheritdoc |
||
| 54 | */ |
||
| 55 | public function getConfirmationMessage() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritdoc |
||
| 61 | */ |
||
| 62 | public function performAction(Objects $field, ElementInterface $element): bool |
||
| 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 |