function BookMultilingualTest::langcodesProvider

Same name and namespace in other branches
  1. 9 core/modules/book/tests/src/Kernel/BookMultilingualTest.php \Drupal\Tests\book\Kernel\BookMultilingualTest::langcodesProvider()
  2. 10 core/modules/book/tests/src/Kernel/BookMultilingualTest.php \Drupal\Tests\book\Kernel\BookMultilingualTest::langcodesProvider()

Data provider for ::testMultilingualBooks().

File

core/modules/book/tests/src/Kernel/BookMultilingualTest.php, line 259

Class

BookMultilingualTest
Tests multilingual books.

Namespace

Drupal\Tests\book\Kernel

Code

public static function langcodesProvider() {
    return [
        [
            self::LANGCODE,
        ],
        [
            'en',
        ],
    ];
}

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