/** * Determine if the element should run its validation plugins on form submission * * @return bool default true */ public function mustValidate() { if (!$this->canUse() && !$this->canView()) { return false; } return parent::mustValidate(); }
/** * Determine if the element should run its validation plugins on form submission * * @return bool default true */ public function mustValidate() { if (!$this->canUse() && !$this->canView()) { return false; } return parent::mustValidate(); }