You are here

interface EventMaxEnrollServiceInterface in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
  2. 8.5 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
  3. 8.7 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
  4. 8.8 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php \Drupal\social_event_max_enroll\Service\EventMaxEnrollServiceInterface
  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
  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
  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
  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

Interface EventMaxEnrollServiceInterface.

@package Drupal\social_event_max_enroll\Service

Hierarchy

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\Service
View 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

Namesort descending Modifiers Type Description Overrides
EventMaxEnrollServiceInterface::getEnrollmentsLeft public function Get number of enrollments still possible per event. 1
EventMaxEnrollServiceInterface::getEnrollmentsNumber public function Get count of enrollments per event. 1
EventMaxEnrollServiceInterface::isEnabled public function Check if anonymous enrollment is allowed for given event. 1