From c753ec180166fd9a12af9d9d047730d2ee2650b6 Mon Sep 17 00:00:00 2001 From: Derek Wright <git@dwwright.net> Date: Wed, 31 Jan 2024 14:56:38 -1000 Subject: [PATCH] task: #3149783: Remove hardcoded word 'entities' in EntityInlineForm::getEntityTypeLabels() Authored-by: globexplorer (Paul Mrvik) <45455-globexplorer@users.noreply.drupalcode.org> Authored-by: viren18febS (Virendra Singh) <64354-viren18febS@users.noreply.drupalcode.org> Authored-by: dww (Derek Wright) <git@dwwright.net> Reviewed-by: dcam (David Cameron) <9862-dcam@users.noreply.drupalcode.org> Reviewed-by: joachim (Joachim Noreiko) <20313-joachim@users.noreply.drupalcode.org> --- src/Form/EntityInlineForm.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Form/EntityInlineForm.php b/src/Form/EntityInlineForm.php index ad4b4cb..9d193c9 100644 --- a/src/Form/EntityInlineForm.php +++ b/src/Form/EntityInlineForm.php @@ -107,10 +107,9 @@ class EntityInlineForm implements InlineFormInterface { * {@inheritdoc} */ public function getEntityTypeLabels() { - $lowercase_label = $this->entityType->getSingularLabel(); return [ - 'singular' => $lowercase_label, - 'plural' => $this->t('@entity_type entities', ['@entity_type' => $lowercase_label]), + 'singular' => $this->entityType->getSingularLabel(), + 'plural' => $this->entityType->getPluralLabel(), ]; } -- GitLab