Remove hardcoded word 'entities' in EntityInlineForm::getEntityTypeLabels()

Created on 8 June 2020, about 4 years ago
Updated 15 February 2024, 4 months ago
  /**
   * {@inheritdoc}
   */
  public function getEntityTypeLabels() {
    $lowercase_label = $this->entityType->getSingularLabel();
    return [
      'singular' => $lowercase_label,
      'plural' => $this->t('@entity_type entities', ['@entity_type' => $lowercase_label]),
    ];
  }

The word entities is not needed here. If my entity has the name Document, then the ief form shows it as Document entities or in German Dokument Entitaeten. This is aweful. We do not need the word "entities" here. Please remove it

📌 Task
Status

Fixed

Version

3.0

Component

User interface

Created by

🇬🇧United Kingdom globexplorer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024