You are here

class LtiToolProviderLaunchEvent in LTI Tool Provider 8

Same name and namespace in other branches
  1. 2.x src/Event/LtiToolProviderLaunchEvent.php \Drupal\lti_tool_provider\Event\LtiToolProviderLaunchEvent

Hierarchy

Expanded class hierarchy of LtiToolProviderLaunchEvent

1 file declares its use of LtiToolProviderLaunchEvent
LTIToolProvider.php in src/Authentication/Provider/LTIToolProvider.php

File

src/Event/LtiToolProviderLaunchEvent.php, line 7

Namespace

Drupal\lti_tool_provider\Event
View source
class LtiToolProviderLaunchEvent extends LtiToolProviderEvent {
  const EVENT_NAME = 'LTI_TOOL_PROVIDER_LAUNCH_EVENT';

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

  /**
   * LtiToolProviderLaunchEvent constructor.
   * @param array $context
   */
  public function __construct(array $context) {
    $this
      ->setContext($context);
  }

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
LtiToolProviderEvent::$cancelled private property
LtiToolProviderEvent::$message private property
LtiToolProviderEvent::cancel public function
LtiToolProviderEvent::dispatchEvent static function Dispatch an LTI Tool Provider event.
LtiToolProviderEvent::getMessage public function
LtiToolProviderEvent::isCancelled public function
LtiToolProviderEvent::sendLtiError public function Send an error back to the LMS.
LtiToolProviderLaunchEvent::$context private property
LtiToolProviderLaunchEvent::EVENT_NAME constant Overrides LtiToolProviderEvent::EVENT_NAME
LtiToolProviderLaunchEvent::getContext public function
LtiToolProviderLaunchEvent::setContext public function
LtiToolProviderLaunchEvent::__construct public function LtiToolProviderLaunchEvent constructor.