protected canCauseValidation ( ) : boolean | ||
return | boolean | whether to perform validation if the button is clicked |
protected function canCauseValidation()
{
if ($this->getCausesValidation()) {
$group = $this->getValidationGroup();
return $this->getPage()->getValidators($group)->getCount() > 0;
} else {
return false;
}
}