function RegistryTest::provider40xThemeSuggestions

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php \Drupal\KernelTests\Core\Theme\RegistryTest::provider40xThemeSuggestions()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php \Drupal\KernelTests\Core\Theme\RegistryTest::provider40xThemeSuggestions()
  3. 11.x core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php \Drupal\KernelTests\Core\Theme\RegistryTest::provider40xThemeSuggestions()

Data provider for test40xThemeSuggestions().

Return value

array An associative array of 40x theme suggestions.

File

core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php, line 221

Class

RegistryTest
Tests the behavior of the ThemeRegistry class.

Namespace

Drupal\KernelTests\Core\Theme

Code

public static function provider40xThemeSuggestions() {
    return [
        [
            401,
            'page__401',
        ],
        [
            403,
            'page__403',
        ],
        [
            404,
            'page__404',
        ],
    ];
}

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