function PluralTranslatableMarkupTest::providerPluralTranslatableMarkupSerialization

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php \Drupal\Tests\Core\StringTranslation\PluralTranslatableMarkupTest::providerPluralTranslatableMarkupSerialization()
  2. 10 core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php \Drupal\Tests\Core\StringTranslation\PluralTranslatableMarkupTest::providerPluralTranslatableMarkupSerialization()
  3. 11.x core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php \Drupal\Tests\Core\StringTranslation\PluralTranslatableMarkupTest::providerPluralTranslatableMarkupSerialization()

Data provider for ::testPluralTranslatableMarkupSerialization().

File

core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php, line 37

Class

PluralTranslatableMarkupTest
Tests the TranslatableMarkup class.

Namespace

Drupal\Tests\Core\StringTranslation

Code

public function providerPluralTranslatableMarkupSerialization() {
    return [
        [
            1,
            'singular 1',
        ],
        [
            2,
            'plural 2',
        ],
    ];
}

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