You are here

public function EventMaxEnrollServiceInterface::getEnrollmentsLeft in Open Social 8.9

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

Get number of enrollments still possible per event.

Parameters

\Drupal\node\NodeInterface $node: The node to check for.

Return value

int How many spots are left.

1 method overrides EventMaxEnrollServiceInterface::getEnrollmentsLeft()
EventMaxEnrollService::getEnrollmentsLeft in modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollService.php
Get number of enrollments still possible per event.

File

modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php, line 34

Class

EventMaxEnrollServiceInterface
Interface EventMaxEnrollServiceInterface.

Namespace

Drupal\social_event_max_enroll\Service

Code

public function getEnrollmentsLeft(NodeInterface $node);