function DevelopmentSettingsFormTest::twigDevelopmentData

Same name in other branches
  1. 10 core/modules/system/tests/src/FunctionalJavascript/Form/DevelopmentSettingsFormTest.php \Drupal\Tests\system\FunctionalJavascript\Form\DevelopmentSettingsFormTest::twigDevelopmentData()

Test data for Twig development mode.

Return value

array[]

File

core/modules/system/tests/src/FunctionalJavascript/Form/DevelopmentSettingsFormTest.php, line 90

Class

DevelopmentSettingsFormTest
Tests development settings form items for expected behavior.

Namespace

Drupal\Tests\system\FunctionalJavascript\Form

Code

public static function twigDevelopmentData() : array {
    return [
        'Twig development mode checked only' => [
            TRUE,
            NULL,
            NULL,
        ],
        'Twig debug mode only, keep Twig cache' => [
            TRUE,
            TRUE,
            FALSE,
        ],
        'Twig debug mode off, disable Twig cache' => [
            TRUE,
            FALSE,
            TRUE,
        ],
        'No changes' => [
            FALSE,
            NULL,
            NULL,
        ],
    ];
}

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