getRenderMode()) { if ($this->getAllowMembers()) { $this->_defaults['attendee'][] = [ 'attendType' => $this->getAllowCurrentUser() ? AttendeeForm::ATTEND_MYSELF : AttendeeForm::ATTEND_OTHER, 'type' => AttendeeForm::TYPE_MEMBER, ]; } else { if ($this->getAllowNonMembers()) { $this->_defaults['attendee'][] = [ 'attendType' => $this->getAllowCurrentUser() ? AttendeeForm::ATTEND_MYSELF : AttendeeForm::ATTEND_OTHER, 'type' => AttendeeForm::TYPE_NONMEMBER, ]; } } } return parent::init(); } }