Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Actions/Export.php → src/Actions/ExportAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -64,4 +64,9 @@ public function buttonText()
{
return 'Export';
}

public static function title()
{
return __('Export');
}
}
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 () {
Expand Down