public function StringInterface::setPlurals

Sets this string using array of plural values.

Serializes plural variants in one string glued by LOCALE_PLURAL_DELIMITER.

Parameters

array $plurals: Array of strings with plural variants.

Return value

Drupal\locale\LocaleString The called object.

1 method overrides StringInterface::setPlurals()
StringBase::setPlurals in drupal/core/modules/locale/lib/Drupal/locale/StringBase.php
Implements Drupal\locale\StringInterface::setPlurals().

File

drupal/core/modules/locale/lib/Drupal/locale/StringInterface.php, line 91
Definition of Drupal\locale\StringInterface.

Class

StringInterface
Defines the locale string interface.

Namespace

Drupal\locale

Code

public function setPlurals($plurals);