Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InflectorInterface.php

function InflectorInterface::singularize

Returns the singular forms of a string.

If the method can't determine the form with certainty, several possible singulars are returned.

Return value

string[]

3 methods override InflectorInterface::singularize()
EnglishInflector::singularize in vendor/symfony/string/Inflector/EnglishInflector.php
Returns the singular forms of a string.
FrenchInflector::singularize in vendor/symfony/string/Inflector/FrenchInflector.php
Returns the singular forms of a string.
SpanishInflector::singularize in vendor/symfony/string/Inflector/SpanishInflector.php
Returns the singular forms of a string.

File

vendor/symfony/string/Inflector/InflectorInterface.php, line 23

Class

InflectorInterface

Namespace

Symfony\Component\String\Inflector

Code

public function singularize(string $plural) : array;
RSS feed
Powered by Drupal