| 1 |
<?php |
| 2 |
|
| 3 |
namespace AATXT\App\Admin\BulkActions; |
| 4 |
|
| 5 |
/** |
| 6 |
* Interface for bulk actions in the media library. |
| 7 |
* |
| 8 |
* Defines the contract for implementing bulk actions that can be |
| 9 |
* executed on multiple media items at once. |
| 10 |
*/ |
| 11 |
interface BulkActionInterface |
| 12 |
{ |
| 13 |
/** |
| 14 |
* Execute the bulk action on the given items. |
| 15 |
* |
| 16 |
* @param array<int> $itemIds Array of media item IDs to process |
| 17 |
* @return BulkActionResult Result containing total and updated counts |
| 18 |
*/ |
| 19 |
public function execute(array $itemIds): BulkActionResult; |
| 20 |
|
| 21 |
/** |
| 22 |
* Get the unique name/identifier of this bulk action. |
| 23 |
* |
| 24 |
* @return string The action name (e.g., 'auto_alt_text') |
| 25 |
*/ |
| 26 |
public function getName(): string; |
| 27 |
|
| 28 |
/** |
| 29 |
* Get the display label for this bulk action. |
| 30 |
* |
| 31 |
* @return string The translated label shown in the UI |
| 32 |
*/ |
| 33 |
public function getLabel(): string; |
| 34 |
} |
| 35 |
|