You are here

SocialEventEnrollServiceInterface.php in Open Social 8.5

File

modules/social_features/social_event/src/Service/SocialEventEnrollServiceInterface.php
View source
<?php

namespace Drupal\social_event\Service;

use Drupal\node\NodeInterface;

/**
 * Interface SocialEventEnrollServiceInterface.
 *
 * @package Drupal\social_event\Service
 */
interface SocialEventEnrollServiceInterface {

  /**
   * Check if enrollment is allowed for given event.
   *
   * @param \Drupal\node\NodeInterface $node
   *   A node.
   *
   * @return bool
   *   TRUE if enrollment is allowed.
   */
  public function isEnabled(NodeInterface $node);

}

Interfaces

Namesort descending Description
SocialEventEnrollServiceInterface Interface SocialEventEnrollServiceInterface.