Ejemplo n.º 1
0
 /**
  * Passed a FormAction, returns true if that action is exempt from Form validation
  *
  * @param FormAction $action
  * @return bool
  */
 public function actionIsValidationExempt($action)
 {
     if ($action->getValidationExempt()) {
         return true;
     }
     if (in_array($action->actionName(), $this->getValidationExemptActions())) {
         return true;
     }
     return false;
 }