OEModule\OphCoCvi\controllers\DefaultController::getElementsForClinical PHP Method

getElementsForClinical() private method

Because form elements won't be submitted when editing without this access, we need to return the current event element if it exists
private getElementsForClinical ( ) : Element_OphCoCvi_ClinicalInfo[] | boolean | null
return OEModule\OphCoCvi\models\Element_OphCoCvi_ClinicalInfo[] | boolean | null
    private function getElementsForClinical()
    {
        if (!$this->checkClinicalEditAccess()) {
            $el = $this->event->isNewRecord ? null : $this->getManager()->getClinicalElementForEvent($this->event);
            return !is_null($el) ? array($el) : null;
        }
        return false;
    }