You are here

interface RegistrantFactoryInterface in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/RegistrantFactoryInterface.php \Drupal\rng\RegistrantFactoryInterface
  2. 8 src/RegistrantFactoryInterface.php \Drupal\rng\RegistrantFactoryInterface

The registrant entity factory interface.

Hierarchy

Expanded class hierarchy of RegistrantFactoryInterface

All classes that implement RegistrantFactoryInterface

File

src/RegistrantFactoryInterface.php, line 8

Namespace

Drupal\rng
View source
interface RegistrantFactoryInterface {

  /**
   * Create a registrant entity based on available contexts.
   *
   * @param array $context
   *   An array of contexts, including:
   *    - event (required): An event entity.
   *    - identity_entity_type: Entity type ID of the identity.
   *    - identity_bundle: Bundle of the identity.
   *    - identity: A identity entity.
   *
   * @return \Drupal\rng\Entity\RegistrantInterface
   *   A registrant entity.
   *
   * @throws \InvalidArgumentException
   *   If missing required context.
   * @throws \Exception
   *   Miscellaneous errors, including missing configuration on event type.
   */
  public function createRegistrant(array $context);

}

Members

Namesort descending Modifiers Type Description Overrides
RegistrantFactoryInterface::createRegistrant public function Create a registrant entity based on available contexts. 1