class LtiToolProviderRolesEvent in LTI Tool Provider 8
Same name and namespace in other branches
- 2.x modules/lti_tool_provider_roles/src/Event/LtiToolProviderRolesEvent.php \Drupal\lti_tool_provider_roles\Event\LtiToolProviderRolesEvent
Hierarchy
- class \Drupal\lti_tool_provider\LtiToolProviderEvent extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\lti_tool_provider_roles\Event\LtiToolProviderRolesEvent
Expanded class hierarchy of LtiToolProviderRolesEvent
1 file declares its use of LtiToolProviderRolesEvent
- LtiToolProviderRolesEventSubscriber.php in modules/
lti_tool_provider_roles/ src/ EventSubscriber/ LtiToolProviderRolesEventSubscriber.php
File
- modules/
lti_tool_provider_roles/ src/ Event/ LtiToolProviderRolesEvent.php, line 8
Namespace
Drupal\lti_tool_provider_roles\EventView source
class LtiToolProviderRolesEvent extends LtiToolProviderEvent {
const EVENT_NAME = 'LTI_TOOL_PROVIDER_ROLES_EVENT';
/**
* @var array
*/
private $context;
/**
* @var UserInterface
*/
private $user;
/**
* LtiToolProviderRolesEvent constructor.
* @param array $context
* @param UserInterface $user
*/
public function __construct(array $context, UserInterface $user) {
$this
->setContext($context);
$this
->setUser($user);
}
/**
* @return array
*/
public function getContext() : array {
return $this->context;
}
/**
* @param array $context
*/
public function setContext(array $context) {
$this->context = $context;
}
/**
* @return UserInterface
*/
public function getUser() : UserInterface {
return $this->user;
}
/**
* @param UserInterface $user
*/
public function setUser(UserInterface $user) : void {
$this->user = $user;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LtiToolProviderEvent:: |
private | property | ||
LtiToolProviderEvent:: |
private | property | ||
LtiToolProviderEvent:: |
public | function | ||
LtiToolProviderEvent:: |
static | function | Dispatch an LTI Tool Provider event. | |
LtiToolProviderEvent:: |
public | function | ||
LtiToolProviderEvent:: |
public | function | ||
LtiToolProviderEvent:: |
public | function | Send an error back to the LMS. | |
LtiToolProviderRolesEvent:: |
private | property | ||
LtiToolProviderRolesEvent:: |
private | property | ||
LtiToolProviderRolesEvent:: |
constant |
Overrides LtiToolProviderEvent:: |
||
LtiToolProviderRolesEvent:: |
public | function | ||
LtiToolProviderRolesEvent:: |
public | function | ||
LtiToolProviderRolesEvent:: |
public | function | ||
LtiToolProviderRolesEvent:: |
public | function | ||
LtiToolProviderRolesEvent:: |
public | function | LtiToolProviderRolesEvent constructor. |