function PoHeader::getPluralForms

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Component/Gettext/PoHeader.php \Drupal\Component\Gettext\PoHeader::getPluralForms()
  2. 10 core/lib/Drupal/Component/Gettext/PoHeader.php \Drupal\Component\Gettext\PoHeader::getPluralForms()
  3. 11.x core/lib/Drupal/Component/Gettext/PoHeader.php \Drupal\Component\Gettext\PoHeader::getPluralForms()

Gets the plural form.

Return value

string Plural form component from the header, for example: 'nplurals=2; plural=(n > 1);'.

File

core/lib/Drupal/Component/Gettext/PoHeader.php, line 88

Class

PoHeader
Gettext PO header handler.

Namespace

Drupal\Component\Gettext

Code

public function getPluralForms() {
    return $this->pluralForms;
}

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