Skip to content
Snippets Groups Projects

Resolve #3516611 "Disabling singulizarize break"

3 files
+ 10
9
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -130,6 +130,7 @@ class EntityTypeWrapper {
@@ -130,6 +130,7 @@ class EntityTypeWrapper {
$singular = $this->inflector->singularize($this->entity->id());
$singular = $this->inflector->singularize($this->entity->id());
return u($singular)
return u($singular)
 
->ascii()
->title()
->title()
->prepend($this->entityTypePlugin->getPrefix())
->prepend($this->entityTypePlugin->getPrefix())
->camel()
->camel()
@@ -137,10 +138,7 @@ class EntityTypeWrapper {
@@ -137,10 +138,7 @@ class EntityTypeWrapper {
}
}
/**
/**
* Type of this entity and bundle, plural. Eg paragraphTexts.
* Type of this entity and bundle, plural. Eg paragraphTexts. newsItems.
*
* Some words are the same in singular and plural.
* Eg News, Sheep. Add ...Items and hope for the best.
*
*
* @return string
* @return string
* The GraphQL type name of the entity type, plural.
* The GraphQL type name of the entity type, plural.
@@ -152,6 +150,7 @@ class EntityTypeWrapper {
@@ -152,6 +150,7 @@ class EntityTypeWrapper {
$plural = $this->inflector->pluralize($singular);
$plural = $this->inflector->pluralize($singular);
return u($plural)
return u($plural)
 
->ascii()
->title()
->title()
->prepend($this->entityTypePlugin->getPrefix())
->prepend($this->entityTypePlugin->getPrefix())
->camel()
->camel()
Loading