I have overriddend the isValid()
function for a form, and I was wondering if there are any drawbacks to adding logic there.
Example code:
public function isValid($data)
{
// conditional requirement of fields
$isValid = parent::isValid($data);
if ($isValid) {
// additional validation
}
return $isValid;
}