public function isMandatory($forceCheck = false) { if ($forceCheck) { return parent::isMandatory(); } return false; }
/** * Function to check if the current field is mandatory or not * @return <Boolean> - true/false */ public function isMandatory() { if (!$this->mandatory) { $this->mandatory = parent::isMandatory(); } return $this->mandatory; }