interface InflectorInterface
Hierarchy
- interface \Symfony\Component\String\Inflector\InflectorInterface
Expanded class hierarchy of InflectorInterface
All classes that implement InflectorInterface
1 file declares its use of InflectorInterface
- EntityMethodDeriver.php in core/
lib/ Drupal/ Core/ Config/ Action/ Plugin/ ConfigAction/ Deriver/ EntityMethodDeriver.php
File
-
vendor/
symfony/ string/ Inflector/ InflectorInterface.php, line 14
Namespace
Symfony\Component\String\InflectorView source
interface InflectorInterface {
/**
* Returns the singular forms of a string.
*
* If the method can't determine the form with certainty, several possible singulars are returned.
*
* @return string[]
*/
public function singularize(string $plural) : array;
/**
* Returns the plural forms of a string.
*
* If the method can't determine the form with certainty, several possible plurals are returned.
*
* @return string[]
*/
public function pluralize(string $singular) : array;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
InflectorInterface::pluralize | public | function | Returns the plural forms of a string. | 3 |
InflectorInterface::singularize | public | function | Returns the singular forms of a string. | 3 |