interface RegistrantFactoryInterface in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/RegistrantFactoryInterface.php \Drupal\rng\RegistrantFactoryInterface
- 8 src/RegistrantFactoryInterface.php \Drupal\rng\RegistrantFactoryInterface
The registrant entity factory interface.
Hierarchy
- interface \Drupal\rng\RegistrantFactoryInterface
Expanded class hierarchy of RegistrantFactoryInterface
All classes that implement RegistrantFactoryInterface
File
- src/
RegistrantFactoryInterface.php, line 8
Namespace
Drupal\rngView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RegistrantFactoryInterface:: |
public | function | Create a registrant entity based on available contexts. | 1 |