Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function validate()
 {
     if (!$this->isSubmit()) {
         return false;
     }
     $this->buildWidgets();
     $this->validateWidgets();
     $this->updateErrorCollection();
     foreach ($this->getForms() as $form) {
         foreach ($form->getFields() as $field) {
             $this->context->setParam(substr($field->getName(), strlen($form->getName()) + 1), $this->propertyValues->getPropertyValue($field->getName()), $form->getName());
         }
     }
     return $this->propertyValues->hasNoInvalidPropertyValues();
 }