add setter to define all fields in a defined context

This commit is contained in:
Simon Vieille 2023-05-27 15:08:16 +02:00
parent c688cc0552
commit 895d5065ca
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -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