diff --git a/src/core/Crud/CrudConfiguration.php b/src/core/Crud/CrudConfiguration.php index 8740b73..534ff9c 100644 --- a/src/core/Crud/CrudConfiguration.php +++ b/src/core/Crud/CrudConfiguration.php @@ -251,6 +251,13 @@ class CrudConfiguration return $this->fields[$context] ?? []; } + public function setFields(string $context, array $fields): self + { + $this->fields[$context] = $fields; + + return $this; + } + /* -- */ public function setMaxPerPage(string $page, int $max): self