Skip to content

Commit

Permalink
Merge pull request #226 from FriendsOfCake/josegonzalez-patch-2
Browse files Browse the repository at this point in the history
feat: pass in the View object to field formatters
  • Loading branch information
josegonzalez authored Jan 21, 2018
2 parents 8b22d88 + 4c95f39 commit edd48d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/CrudViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function process($field, Entity $data, array $options = [])
}

if (is_callable($options['formatter'])) {
return $options['formatter']($field, $value, $this->getContext(), $options);
return $options['formatter']($field, $value, $this->getContext(), $options, $this->getView());
}

$value = $this->introspect($field, $value, $options);
Expand Down

0 comments on commit edd48d6

Please sign in to comment.