Skip to content

Commit

Permalink
Pass field name to callable block config
Browse files Browse the repository at this point in the history
  • Loading branch information
damsfx authored Feb 16, 2024
1 parent 79f5895 commit 26b4fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formwidgets/Blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ protected function processInspectorConfig(array $config): array
}
} elseif (is_callable($defined['options'])) {
$callable = $defined['options'];
$defined['options'] = $callable($this->formWidget, $this->formField);
$defined['options'] = $callable($property);
}
}

Expand Down

0 comments on commit 26b4fc5

Please sign in to comment.