public 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 97
Class
- StringBase
- Defines the locale string base class.
Namespace
Drupal\locale
Code
public function getPlurals() { return explode(LOCALE_PLURAL_DELIMITER, $this->getString()); }
Please login to continue.