Skip to content

Commit

Permalink
minor #3362 Update crud.rst (gonzakpo)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.0.x-dev branch.

Discussion
----------

Update crud.rst

setFormOptions

Commits
-------

7646572 Update crud.rst
  • Loading branch information
javiereguiluz committed Jun 22, 2020
2 parents 4993faf + 7646572 commit abf0b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/crud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,13 @@ Templates and Form Options
// this sets the options of the entire form (later, you can set the options
// of each form type via the methods of their associated fields)
// pass a single array argument to apply the same options for the new and edit forms
->formOptions([
->setFormOptions([
'validation_groups' => ['Default', 'my_validation_group']
]);

// pass two array arguments to apply different options for the new and edit forms
// (pass an empty array argument if you want to apply no options to some form)
->formOptions(
->setFormOptions(
['validation_groups' => ['my_validation_group']],
['validation_groups' => ['Default'], '...' => '...'],
);
Expand Down

0 comments on commit abf0b94

Please sign in to comment.