You are here

class LtiToolProviderLaunchRedirectEvent in LTI Tool Provider 2.x

Same name and namespace in other branches
  1. 8 src/Event/LtiToolProviderLaunchRedirectEvent.php \Drupal\lti_tool_provider\Event\LtiToolProviderLaunchRedirectEvent

Hierarchy

Expanded class hierarchy of LtiToolProviderLaunchRedirectEvent

2 files declare their use of LtiToolProviderLaunchRedirectEvent
LTIToolProviderController.php in src/Controller/LTIToolProviderController.php
LtiToolProviderProvisionEventSubscriber.php in modules/lti_tool_provider_provision/src/EventSubscriber/LtiToolProviderProvisionEventSubscriber.php

File

src/Event/LtiToolProviderLaunchRedirectEvent.php, line 7

Namespace

Drupal\lti_tool_provider\Event
View source
class LtiToolProviderLaunchRedirectEvent extends LtiToolProviderEvent {
  const EVENT_NAME = 'LTI_TOOL_PROVIDER_LAUNCH_REDIRECT_EVENT';

  /**
   * @var array
   */
  private $context;

  /**
   * @var string
   */
  private $destination;

  /**
   * LtiToolProviderLaunchRedirectEvent constructor.
   *
   * @param array $context
   * @param string $destination
   */
  public function __construct(array $context, string $destination) {
    $this
      ->setContext($context);
    $this
      ->setDestination($destination);
  }

  /**
   * @return array
   */
  public function getContext() : array {
    return $this->context;
  }

  /**
   * @param array $context
   */
  public function setContext(array $context) {
    $this->context = $context;
  }

  /**
   * @return string
   */
  public function getDestination() : string {
    return $this->destination;
  }

  /**
   * @param string $destination
   */
  public function setDestination(string $destination) : void {
    $this->destination = $destination;
  }

}

Members