File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2020
2121namespace Drupal \apigee_edge \Exception ;
2222
23+ use Drupal \Core \StringTranslation \StringTranslationTrait ;
2324use Drupal \Core \StringTranslation \TranslatableMarkup ;
2425
2526/**
2627 * Defines an exception for Apigee Edge key provider problems.
2728 */
2829class KeyProviderRequirementsException extends RuntimeException {
2930
31+ use StringTranslationTrait;
32+
3033 /**
3134 * The TranslatableMarkup object containing a message to render on the UI.
3235 *
33- * @var \Drupal\Core\StringTranslation\TranslatableMarkup
36+ * @var \Drupal\Core\StringTranslation\TranslatableMarkup|null
3437 */
3538 protected $ translatableMarkupMessage ;
3639
@@ -39,7 +42,7 @@ class KeyProviderRequirementsException extends RuntimeException {
3942 *
4043 * @param string $message
4144 * The Exception message.
42- * @param \Drupal\Core\StringTranslation\TranslatableMarkup $translatable_markup_message
45+ * @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $translatable_markup_message
4346 * The translatable markup object of the exception to display on the pages
4447 * where the exception is caught.
4548 * @param int|null $code
You can’t perform that action at this time.
0 commit comments