public function EventAnEnrollManager::isGuest in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
- 8.5 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
- 8.6 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
- 8.7 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
- 8.8 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
- 10.3.x modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
- 10.0.x modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollManager.php \Drupal\social_event_an_enroll\EventAnEnrollManager::isGuest()
- 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_enrollCode
public function isGuest(EventEnrollmentInterface $entity) {
return !$entity->field_account->target_id;
}