Symfony\Component\Form\FormInterface::isRequired
Returns whether the form is required to be filled out.
If the form has a parent and the parent is not required, this method will always return false. Otherwise the value set with setRequired() is returned.
Signature
public function isRequired()
Returns
- Boolean