Pass filter-provided parameters to field value factories

[PREMIUM-253]
This commit is contained in:
Jan Jakes
2024-02-02 16:31:39 +01:00
committed by Aschepikov
parent 467f1f8c8c
commit 7f63445f5a
4 changed files with 51 additions and 11 deletions

View File

@@ -60,8 +60,8 @@ class Field {
}
/** @return mixed */
public function getValue(Payload $payload) {
return $this->getFactory()($payload);
public function getValue(Payload $payload, array $params = []) {
return $this->getFactory()($payload, $params);
}
public function getArgs(): array {