diff --git a/src/Form/AppApiKeyAddFormBase.php b/src/Form/AppApiKeyAddFormBase.php index c7d6c527d..3d31b2a3a 100644 --- a/src/Form/AppApiKeyAddFormBase.php +++ b/src/Form/AppApiKeyAddFormBase.php @@ -180,12 +180,12 @@ public function submitForm(array &$form, FormStateInterface $form_state) { if ($api_products === []) { // Is this a skeleton key? $this->messenger()->addWarning($this->t('The @app @app_entity_label has no @apis associated.', $t_args + [ - '@app_entity_label' => $this->app->getEntityType()->getSingularLabel(), + '@app_entity_label' => $this->app->getEntityType()->getSingularLabel(), // @todo DI dependency. // phpcs:disable '@apis' => \Drupal::entityTypeManager()->getDefinition('api_product')->getPluralLabel(), // phpcs:enable - ])); + ])); return; }