public function StringBase::setPlurals

Implements Drupal\locale\StringInterface::setPlurals().

Overrides StringInterface::setPlurals

File

drupal/core/modules/locale/lib/Drupal/locale/StringBase.php, line 109
Definition of Drupal\locale\StringBase.

Class

StringBase
Defines the locale string base class.

Namespace

Drupal\locale

Code

public function setPlurals($plurals) {
  $this
    ->setString(implode(LOCALE_PLURAL_DELIMITER, $plurals));
  return $this;
}