Skip to content

Commit 26b4fc5

Browse files
authored
Pass field name to callable block config
1 parent 79f5895 commit 26b4fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formwidgets/Blocks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ protected function processInspectorConfig(array $config): array
344344
}
345345
} elseif (is_callable($defined['options'])) {
346346
$callable = $defined['options'];
347-
$defined['options'] = $callable($this->formWidget, $this->formField);
347+
$defined['options'] = $callable($property);
348348
}
349349
}
350350

0 commit comments

Comments
 (0)