add CrudConfiguration::getViewData in complement of CrudConfiguration::getViewDatas
This commit is contained in:
parent
995d76c711
commit
4e6125c66d
|
@ -215,6 +215,11 @@ class CrudConfiguration
|
|||
return $this->viewDatas[$context] ?? [];
|
||||
}
|
||||
|
||||
public function getViewData(string $context, string $name, $defaultValue = null)
|
||||
{
|
||||
return $this->viewDatas[$context][$name] ?? $defaultValue;
|
||||
}
|
||||
|
||||
/* -- */
|
||||
|
||||
public function setField(string $context, string $label, string $field, array $options): self
|
||||
|
|
Loading…
Reference in a new issue