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

getElementsForClerical() 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 getElementsForClerical ( ) : Element_OphCoCvi_ClericalInfo | boolean | null
return OEModule\OphCoCvi\models\Element_OphCoCvi_ClericalInfo | boolean | null
    private function getElementsForClerical()
    {
        if (!$this->checkClericalEditAccess()) {
            $el = $this->event->isNewRecord ? null : $this->getManager()->getClericalElementForEvent($this->event);
            return !is_null($el) ? array($el) : null;
        }
        return false;
    }