FormError::setOrigin()

setOrigin(FormInterface $origin) Sets the form that caused this error. This method must only be called once. Parameters FormInterface $origin The form that caused this error Exceptions BadMethodCallException If the method is called more than once

FormError::serialize()

string serialize() Serializes this error. Return Value string The serialized error

FormError::getOrigin()

FormInterface getOrigin() Returns the form that caused this error. Return Value FormInterface The form that caused this error

FormError::getMessageTemplate()

string getMessageTemplate() Returns the error message template. Return Value string

FormError::getMessagePluralization()

int|null getMessagePluralization() Returns the value for error message pluralization. Return Value int|null

FormError::getMessageParameters()

array getMessageParameters() Returns the parameters to be inserted in the message template. Return Value array

FormError::getMessage()

string getMessage() Returns the error message. Return Value string

FormError::getCause()

mixed getCause() Returns the cause of this error. Return Value mixed The cause of this error

FormError

class FormError implements Serializable Wraps errors in forms. Methods __construct(string $message, string|null $messageTemplate = null, array $messageParameters = array(), int|null $messagePluralization = null, mixed $cause = null) Constructor. string getMessage() Returns the error message. string getMessageTemplate() Returns the error message template. array getMessageParameters() Returns the parameters to be inserted in the message template. int|null getMessagePlur

FormEnctypeNode deprecated

class FormEnctypeNode extends SearchAndRenderBlockNode deprecated since version 2.3, to be removed in 3.0. Use the helper "form_start()" instead. Methods compile(Twig_Compiler $compiler) from SearchAndRenderBlockNode Details compile(Twig_Compiler $compiler) Parameters Twig_Compiler $compiler