From a77990edd874492084590dc3027d3a3d7248f719 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Wed, 15 Feb 2023 13:25:49 +0000
Subject: [PATCH] Issue #3261347 by noorulshameera, pflora, Johnny Santos,
 neclimdul, alexpott: Incorrect EntityType::$label_count type documentation

---
 core/lib/Drupal/Core/Entity/EntityType.php | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/core/lib/Drupal/Core/Entity/EntityType.php b/core/lib/Drupal/Core/Entity/EntityType.php
index 5191f4d1d2e6..4183a1d8fffd 100644
--- a/core/lib/Drupal/Core/Entity/EntityType.php
+++ b/core/lib/Drupal/Core/Entity/EntityType.php
@@ -200,9 +200,15 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
   /**
    * A definite singular/plural name of the type.
    *
-   * Needed keys: "singular" and "plural".
+   * Needed keys: "singular" and "plural". Can also have key: "context".
+   * @code
+   * [
+   *    'singular' => '@count entity',
+   *    'plural' => '@count entities',
+   *    'context' => 'Entity context',
+   * ]
    *
-   * @var string|\Drupal\Core\StringTranslation\TranslatableMarkup
+   * @var string[]
    *
    * @see \Drupal\Core\Entity\EntityTypeInterface::getCountLabel()
    */
-- 
GitLab