Remove query string usage from simple pages

This commit is contained in:
Dan Harrin
2024-03-14 11:58:21 +00:00
parent 1f3b4e1705
commit d2000c444c
2 changed files with 21 additions and 2 deletions
@@ -40,13 +40,13 @@ trait InteractsWithActions
/**
* @var mixed
*/
#[Url(as: 'action')]
// #[Url(as: 'action')]
public $defaultAction = null;
/**
* @var mixed
*/
#[Url(as: 'actionArguments')]
// #[Url(as: 'actionArguments')]
public $defaultActionArguments = null;
/**
@@ -56,6 +56,17 @@ trait InteractsWithActions
protected bool $hasActionsModalRendered = false;
/**
* @return array<string, array<mixed>>
*/
protected function queryStringInteractsWithActions(): array
{
return [
'defaultAction' => ['as' => 'action'],
'defaultActionArguments' => ['as' => 'actionArguments'],
];
}
/**
* @param array<string, mixed> $arguments
*/
+8
View File
@@ -26,4 +26,12 @@ abstract class SimplePage extends BasePage
{
return true;
}
/**
* @return array<string, array<mixed>>
*/
protected function queryStringInteractsWithActions(): array
{
return [];
}
}