Skip to content

Commit

Permalink
Add missing dependency and fix typehints (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxr576 authored Jan 10, 2023
1 parent 91880d8 commit c446600
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Exception/KeyProviderRequirementsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@

namespace Drupal\apigee_edge\Exception;

use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
* Defines an exception for Apigee Edge key provider problems.
*/
class KeyProviderRequirementsException extends RuntimeException {

use StringTranslationTrait;

/**
* The TranslatableMarkup object containing a message to render on the UI.
*
* @var \Drupal\Core\StringTranslation\TranslatableMarkup
* @var \Drupal\Core\StringTranslation\TranslatableMarkup|null
*/
protected $translatableMarkupMessage;

Expand All @@ -39,7 +42,7 @@ class KeyProviderRequirementsException extends RuntimeException {
*
* @param string $message
* The Exception message.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $translatable_markup_message
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $translatable_markup_message
* The translatable markup object of the exception to display on the pages
* where the exception is caught.
* @param int|null $code
Expand Down

0 comments on commit c446600

Please sign in to comment.