LtiToolProviderProvisionSyncProvisionedEntityEvent.php in LTI Tool Provider 2.x
File
modules/lti_tool_provider_provision/src/Event/LtiToolProviderProvisionSyncProvisionedEntityEvent.php
View source
<?php
namespace Drupal\lti_tool_provider_provision\Event;
use Drupal\Core\Entity\EntityInterface;
use Drupal\lti_tool_provider\LtiToolProviderEvent;
class LtiToolProviderProvisionSyncProvisionedEntityEvent extends LtiToolProviderEvent {
const EVENT_NAME = 'LTI_TOOL_PROVIDER_PROVISION_SYNC_PROVISIONED_ENTITY_EVENT';
private $context;
private $entity;
public function __construct(array $context, EntityInterface $entity) {
$this
->setContext($context);
$this
->setEntity($entity);
}
public function getContext() : array {
return $this->context;
}
public function setContext(array $context) {
$this->context = $context;
}
public function getEntity() : EntityInterface {
return $this->entity;
}
public function setEntity(EntityInterface $entity) : void {
$this->entity = $entity;
}
}