interface EventMaxEnrollServiceInterface in Open Social 8.5
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
- 8.6 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
- 8.7 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
- 8.8 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
- 10.3.x modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
- 10.0.x modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
- 10.1.x modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
- 10.2.x modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
Interface EventMaxEnrollServiceInterface.
@package Drupal\social_event_max_enroll\Service
Hierarchy
- interface \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
Expanded class hierarchy of EventMaxEnrollServiceInterface
All classes that implement EventMaxEnrollServiceInterface
File
- modules/
social_features/ social_event/ modules/ social_event_max_enroll/ src/ Service/ EventMaxEnrollServiceInterface.php, line 12
Namespace
Drupal\social_event_max_enroll\ServiceView source
interface EventMaxEnrollServiceInterface {
/**
* Get count of enrollments per event.
*
* @param \Drupal\node\NodeInterface $node
* The node to check for.
*
* @return int
* The enrollments count.
*/
public function getEnrollmentsNumber(NodeInterface $node);
/**
* Get number of enrollments still possible per event.
*
* @param \Drupal\node\NodeInterface $node
* The node to check for.
*
* @return int
* How many spots are left.
*/
public function getEnrollmentsLeft(NodeInterface $node);
/**
* Check if anonymous enrollment is allowed for given event.
*
* @param \Drupal\node\NodeInterface $node
* The node to check for.
*
* @return bool
* Returns TRUE if feature is enabled, the node is an event and max enroll
* is configured.
*/
public function isEnabled(NodeInterface $node);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventMaxEnrollServiceInterface:: |
public | function | Get number of enrollments still possible per event. | 1 |
EventMaxEnrollServiceInterface:: |
public | function | Get count of enrollments per event. | 1 |
EventMaxEnrollServiceInterface:: |
public | function | Check if anonymous enrollment is allowed for given event. | 1 |