| 1 | <?php |
||
| 16 | abstract class AbstractIntegrationItemAction extends SavableComponent implements IntegrationItemActionInterface |
||
| 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(Integrations $field, ElementInterface $element, IntegrationAssociation $record): bool |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @inheritdoc |
||
| 66 | */ |
||
| 67 | public function getMessage() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Sets the message that should be displayed to the user after the action is performed. |
||
| 74 | * |
||
| 75 | * @param string $message The message that should be displayed to the user after the action is performed. |
||
| 76 | */ |
||
| 77 | protected function setMessage(string $message) |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @inheritdoc |
||
| 84 | */ |
||
| 85 | public function attributes() |
||
| 94 | } |
||
| 95 |