LtiToolProviderRolesEvent.php in LTI Tool Provider 2.x
File
modules/lti_tool_provider_roles/src/Event/LtiToolProviderRolesEvent.php
View source
<?php
namespace Drupal\lti_tool_provider_roles\Event;
use Drupal\lti_tool_provider\LtiToolProviderEvent;
use Drupal\user\UserInterface;
class LtiToolProviderRolesEvent extends LtiToolProviderEvent {
const EVENT_NAME = 'LTI_TOOL_PROVIDER_ROLES_EVENT';
private $context;
private $user;
public function __construct(array $context, UserInterface $user) {
$this
->setContext($context);
$this
->setUser($user);
}
public function getContext() : array {
return $this->context;
}
public function setContext(array $context) {
$this->context = $context;
}
public function getUser() : UserInterface {
return $this->user;
}
public function setUser(UserInterface $user) : void {
$this->user = $user;
}
}