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