$this->modifyField($name, ['default' => $value, 'value' => $value]);
}
+ public function fields()
+ {
+ $res = $this->overwriteFieldNamesFromDotNotationToArray($this->getOperationSetting('fields') ?? []);
+ if (is_bool($this->getCurrentEntry())) {
+ return $res;
+ }
+ foreach ($res as $k => $v) {
+ if (isset($v['hint'])) {
+ $res[$k]['hint'] = str_replace('$id', $this->getCurrentEntry()->id, $v['hint']);
+ }
+ }
+ return $res;
+ }
+
public function getEntryOrModel()
{
if (null === $this->entry) {