diff --git a/src/Form/EntityInlineForm.php b/src/Form/EntityInlineForm.php index ad4b4cb69cb3462f625fd663057060c4ab520e57..9d193c95773ac170a06fe5ca2f710813b5db7ff0 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(), ]; }