LtiToolProviderReturnEvent.php in LTI Tool Provider 2.x
File
src/Event/LtiToolProviderReturnEvent.php
View source
<?php
namespace Drupal\lti_tool_provider\Event;
use Drupal\lti_tool_provider\LtiToolProviderEvent;
class LtiToolProviderReturnEvent extends LtiToolProviderEvent {
const EVENT_NAME = 'LTI_TOOL_PROVIDER_RETURN_EVENT';
private $context;
private $destination;
public function __construct(array $context, string $destination) {
$this
->setContext($context);
$this
->setDestination($destination);
}
public function getContext() : array {
return $this->context;
}
public function setContext(array $context) {
$this->context = $context;
}
public function getDestination() : string {
return $this->destination;
}
public function setDestination(string $destination) : void {
$this->destination = $destination;
}
}