diff --git a/src/Actions/Export.php b/src/Actions/ExportAction.php similarity index 94% rename from src/Actions/Export.php rename to src/Actions/ExportAction.php index bd644b0..2e07fc7 100644 --- a/src/Actions/Export.php +++ b/src/Actions/ExportAction.php @@ -11,7 +11,7 @@ use Statamic\Support\Arr; use Symfony\Component\HttpFoundation\BinaryFileResponse; -class Export extends Action +class ExportAction extends Action { // TODO: Support form submissions as well @@ -64,4 +64,9 @@ public function buttonText() { return 'Export'; } + + public static function title() + { + return __('Export'); + } } diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index edaf834..57a502e 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -2,7 +2,7 @@ namespace Doefom\StatamicExport; -use Doefom\StatamicExport\Actions\Export; +use Doefom\StatamicExport\Actions\ExportAction; use Doefom\StatamicExport\Http\Controllers\ExportController; use Illuminate\Support\Facades\Route; use Statamic\Facades\Utility; @@ -24,7 +24,7 @@ public function bootAddon(): void ], 'statamic-export-config'); // Register the export action - Export::register(); + ExportAction::register(); // Register the export utility Utility::extend(function () {