function LocaleLookupTest::getCidProvider

Provides test data for testGetCid().

File

core/modules/locale/tests/src/Unit/LocaleLookupTest.php, line 373

Class

LocaleLookupTest
@coversDefaultClass \Drupal\locale\LocaleLookup[[api-linebreak]] @group locale

Namespace

Drupal\Tests\locale\Unit

Code

public function getCidProvider() {
  return [
    [
      [
        'a',
      ],
      'locale:en:irrelevant:a',
    ],
    [
      [
        'a',
        'b',
      ],
      'locale:en:irrelevant:a:b',
    ],
    [
      [
        'b',
        'a',
      ],
      'locale:en:irrelevant:a:b',
    ],
  ];
}

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