PluginProbe
Auto Alt Text / 2.7.0
Auto Alt Text v2.7.0
3.0.3 2.8.2 1.3.1 1.3.2 2.0.0 2.1.0 2.1.1 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.7.0 2.8.0 2.8.1 All 28 releases
auto-alt-text / src / App / Admin / BulkActions / BulkActionInterface.php

BulkActionInterface.php in Auto Alt Text 2.7.0, at src/App/Admin/BulkActions/BulkActionInterface.php

35 lines 894 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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