add page route parameters in crud configuration
This commit is contained in:
parent
43a12e2bb5
commit
7f64d21cc0
|
@ -13,6 +13,7 @@ class CrudConfiguration
|
|||
{
|
||||
protected array $pageTitles = [];
|
||||
protected array $pageRoutes = [];
|
||||
protected array $pageRouteParams = [];
|
||||
protected array $actions = [];
|
||||
protected array $batchActions = [];
|
||||
protected array $actionTitles = [];
|
||||
|
@ -67,6 +68,18 @@ class CrudConfiguration
|
|||
return $this->pageRoutes[$page];
|
||||
}
|
||||
|
||||
public function setPageRouteParams(string $page, array $params): self
|
||||
{
|
||||
$this->pageRouteParams[$page] = $params;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPageRouteParams(string $page): array
|
||||
{
|
||||
return $this->pageRouteParams[$page] ?? [];
|
||||
}
|
||||
|
||||
/* -- */
|
||||
|
||||
public function setForm(string $context, string $form, array $options = []): self
|
||||
|
|
Loading…
Reference in New Issue