add setter to define all fields in a defined context
This commit is contained in:
parent
c688cc0552
commit
895d5065ca
|
@ -251,6 +251,13 @@ class CrudConfiguration
|
||||||
return $this->fields[$context] ?? [];
|
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
|
public function setMaxPerPage(string $page, int $max): self
|
||||||
|
|
Loading…
Reference in a new issue