class LtiToolProviderAttributesEvent in LTI Tool Provider 2.x
Same name and namespace in other branches
- 8 modules/lti_tool_provider_attributes/src/Event/LtiToolProviderAttributesEvent.php \Drupal\lti_tool_provider_attributes\Event\LtiToolProviderAttributesEvent
Hierarchy
- class \Drupal\lti_tool_provider\LtiToolProviderEvent extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\lti_tool_provider_attributes\Event\LtiToolProviderAttributesEvent
Expanded class hierarchy of LtiToolProviderAttributesEvent
1 file declares its use of LtiToolProviderAttributesEvent
- LtiToolProviderAttributesEventSubscriber.php in modules/
lti_tool_provider_attributes/ src/ EventSubscriber/ LtiToolProviderAttributesEventSubscriber.php
File
- modules/
lti_tool_provider_attributes/ src/ Event/ LtiToolProviderAttributesEvent.php, line 8
Namespace
Drupal\lti_tool_provider_attributes\EventView source
class LtiToolProviderAttributesEvent extends LtiToolProviderEvent {
const EVENT_NAME = 'LTI_TOOL_PROVIDER_ATTRIBUTES_EVENT';
/**
* @var array
*/
private $context;
/**
* @var UserInterface
*/
private $user;
/**
* LtiToolProviderAttributesEvent 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 |
---|---|---|---|---|
LtiToolProviderAttributesEvent:: |
private | property | ||
LtiToolProviderAttributesEvent:: |
private | property | ||
LtiToolProviderAttributesEvent:: |
constant |
Overrides LtiToolProviderEvent:: |
||
LtiToolProviderAttributesEvent:: |
public | function | ||
LtiToolProviderAttributesEvent:: |
public | function | ||
LtiToolProviderAttributesEvent:: |
public | function | ||
LtiToolProviderAttributesEvent:: |
public | function | ||
LtiToolProviderAttributesEvent:: |
public | function | LtiToolProviderAttributesEvent constructor. | |
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. |