You are here

class LtiToolProviderAttributesEvent in LTI Tool Provider 8

Same name and namespace in other branches
  1. 2.x modules/lti_tool_provider_attributes/src/Event/LtiToolProviderAttributesEvent.php \Drupal\lti_tool_provider_attributes\Event\LtiToolProviderAttributesEvent

Hierarchy

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\Event
View 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