EventMaxEnrollServiceInterface.php in Open Social 10.3.x
Same filename and directory in other branches
- 8.9 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php
- 8.5 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php
- 8.6 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php
- 8.7 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php
- 8.8 modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php
- 10.0.x modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php
- 10.1.x modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php
- 10.2.x modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.php
Namespace
Drupal\social_event_max_enroll\ServiceFile
modules/social_features/social_event/modules/social_event_max_enroll/src/Service/EventMaxEnrollServiceInterface.phpView source
<?php
namespace Drupal\social_event_max_enroll\Service;
use Drupal\node\NodeInterface;
/**
* Interface EventMaxEnrollServiceInterface.
*
* @package Drupal\social_event_max_enroll\Service
*/
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);
}
Interfaces
Name | Description |
---|---|
EventMaxEnrollServiceInterface | Interface EventMaxEnrollServiceInterface. |