Loading core/lib/Drupal/Core/Entity/EntityType.php +8 −2 Original line number Diff line number Diff line Loading @@ -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() */ Loading Loading
core/lib/Drupal/Core/Entity/EntityType.php +8 −2 Original line number Diff line number Diff line Loading @@ -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() */ Loading