You are here

LtiToolProviderLaunchEvent.php in LTI Tool Provider 2.x

Same filename and directory in other branches
  1. 8 src/Event/LtiToolProviderLaunchEvent.php

File

src/Event/LtiToolProviderLaunchEvent.php
View source
<?php

namespace Drupal\lti_tool_provider\Event;

use Drupal\lti_tool_provider\LtiToolProviderEvent;
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;
  }

}

Classes