1 | <?php |
||
15 | abstract class AbstractIntegrationAction extends SavableComponent implements IntegrationActionInterface |
||
16 | { |
||
17 | /** |
||
18 | * The message that should be displayed to the user after the action is performed. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | private $message; |
||
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | public static function isDestructive(): bool |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | public function getTriggerLabel(): string |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function getTriggerHtml() |
||
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | public function getConfirmationMessage() |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | public function performAction(Integrations $field, ElementInterface $element): bool |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | public function getMessage() |
||
70 | |||
71 | /** |
||
72 | * Sets the message that should be displayed to the user after the action is performed. |
||
73 | * |
||
74 | * @param string $message The message that should be displayed to the user after the action is performed. |
||
75 | */ |
||
76 | protected function setMessage(string $message) |
||
80 | |||
81 | /** |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | public function attributes() |
||
93 | } |
||
94 |