StringBase::getPlurals

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());
}
doc_Drupal
2016-10-29 09:45:01
Comments
Leave a Comment

Please login to continue.