function StringInterface::getPlurals

Same name in other branches
  1. 9 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::getPlurals()
  2. 8.9.x core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::getPlurals()
  3. 11.x core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::getPlurals()

Splits string to work with plural values.

Return value

array Array of strings that are plural variants.

1 method overrides StringInterface::getPlurals()
StringBase::getPlurals in core/modules/locale/src/StringBase.php
Splits string to work with plural values.

File

core/modules/locale/src/StringInterface.php, line 70

Class

StringInterface
Defines the locale string interface.

Namespace

Drupal\locale

Code

public function getPlurals();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.