public function StringBase::getPlurals in Drupal 8
Same name and namespace in other branches
- 9 core/modules/locale/src/StringBase.php \Drupal\locale\StringBase::getPlurals()
Splits string to work with plural values.
Return value
array Array of strings that are plural variants.
Overrides StringInterface::getPlurals
File
- core/
modules/ locale/ src/ StringBase.php, line 99
Class
- StringBase
- Defines the locale string base class.
Namespace
Drupal\localeCode
public function getPlurals() {
return explode(PoItem::DELIMITER, $this
->getString());
}