class LtiToolProviderProvisionCreateProvisionEvent in LTI Tool Provider 8
Same name and namespace in other branches
- 2.x modules/lti_tool_provider_provision/src/Event/LtiToolProviderProvisionCreateProvisionEvent.php \Drupal\lti_tool_provider_provision\Event\LtiToolProviderProvisionCreateProvisionEvent
Hierarchy
- class \Drupal\lti_tool_provider\LtiToolProviderEvent extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\lti_tool_provider_provision\Event\LtiToolProviderProvisionCreateProvisionEvent
Expanded class hierarchy of LtiToolProviderProvisionCreateProvisionEvent
2 files declare their use of LtiToolProviderProvisionCreateProvisionEvent
- LtiToolProviderProvisionEventSubscriber.php in modules/
lti_tool_provider_provision/ src/ EventSubscriber/ LtiToolProviderProvisionEventSubscriber.php - ProvisionService.php in modules/
lti_tool_provider_provision/ src/ Services/ ProvisionService.php
File
- modules/
lti_tool_provider_provision/ src/ Event/ LtiToolProviderProvisionCreateProvisionEvent.php, line 8
Namespace
Drupal\lti_tool_provider_provision\EventView source
class LtiToolProviderProvisionCreateProvisionEvent extends LtiToolProviderEvent {
const EVENT_NAME = 'LTI_TOOL_PROVIDER_PROVISION_CREATE_PROVISION_EVENT';
/**
* @var array
*/
private $context;
/**
* @var EntityInterface
*/
private $entity;
/**
* LtiToolProviderProvisionCreateProvisionEvent constructor.
* @param array $context
* @param EntityInterface $entity
*/
public function __construct(array $context, EntityInterface $entity) {
$this
->setContext($context);
$this
->setEntity($entity);
}
/**
* @return array
*/
public function getContext() : array {
return $this->context;
}
/**
* @param array $context
*/
public function setContext(array $context) {
$this->context = $context;
}
/**
* @return EntityInterface
*/
public function getEntity() : EntityInterface {
return $this->entity;
}
/**
* @param EntityInterface $entity
*/
public function setEntity(EntityInterface $entity) : void {
$this->entity = $entity;
}
}