You are here

public function EventAnEnrollManager::isGuest in Open Social 8.9

Same name and namespace in other branches
  1. 8.5 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
  2. 8.6 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
  3. 8.7 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
  4. 8.8 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
  5. 10.3.x modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
  6. 10.0.x modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
  7. 10.1.x modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
  8. 10.2.x modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()

Check if enrollment user is guest.

Parameters

\Drupal\social_event\EventEnrollmentInterface $entity: The event enrollment.

Return value

bool TRUE if it is guest.

File

modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php, line 59

Class

EventAnEnrollManager
Class EventAnEnrollManager.

Namespace

Drupal\social_event_an_enroll

Code

public function isGuest(EventEnrollmentInterface $entity) {
  return !$entity->field_account->target_id;
}