Skip to content

Commit c57ba84

Browse files
committedMay 16, 2018
Documents new FormElementErrors::setTranslateMessages() method
1 parent 9d629e2 commit c57ba84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎docs/book/helper/form-element-errors.md

+1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ Method signature | Descripti
7070
`getMessageCloseString() : string` | Returns the string used to close message representation.
7171
`setAttributes(array $attributes) : void` | Set the attributes that will go on the message open format as key/value pairs.
7272
`getAttributes() : array` | Returns the attributes that will go on the message open format.
73+
`setTranslateMessages(bool $flag) : self` | Indicate whether or not element validation error messages should be translated during `render()`. Default is to translate them.
7374
`render(ElementInterface $element [, array $attributes = array()]) : string` | Renders validation errors for the provided `$element`. Attributes provided will be used in the `messageOpenFormat`, and merged with any provided previously via `setAttributes()`.

0 commit comments

Comments
 (0)
Please sign in to comment.