public function getGuestName(EventEnrollmentInterface $entity, $email = TRUE) {
    $parts = [];

    // If user doesn't have access to see the first/last/email value.
    // Lets return guest.
    if (!social_event_manager_or_organizer()) {
      return $this->t('Guest');
    }

    if (!$entity->field_first_name->isEmpty()) {
      $parts[] = $entity->field_first_name->value;
    }

    if (!$entity->field_last_name->isEmpty()) {
      $parts[] = $entity->field_last_name->value;
    }

    if (!$parts && $email) {
      $parts[] = $entity->field_email->value;
    }

    return implode(' ', $parts);
  }