You are here

public function LtiToolProviderEvent::cancel in LTI Tool Provider 2.x

Same name and namespace in other branches
  1. 8 src/LtiToolProviderEvent.php \Drupal\lti_tool_provider\LtiToolProviderEvent::cancel()

File

src/LtiToolProviderEvent.php, line 56

Class

LtiToolProviderEvent

Namespace

Drupal\lti_tool_provider

Code

public function cancel(string $message = 'Launch has been cancelled.') : void {
  $this->cancelled = TRUE;
  $this->message = $message;
  $this
    ->stopPropagation();
}