function FormBuilderTest::formStateResponseProvider

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::formStateResponseProvider()
  2. 8.9.x core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::formStateResponseProvider()
  3. 10 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\FormBuilderTest::formStateResponseProvider()

Provides test data for testHandleFormStateResponse().

File

core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php, line 181

Class

FormBuilderTest
@coversDefaultClass \Drupal\Core\Form\FormBuilder @group Form

Namespace

Drupal\Tests\Core\Form

Code

public static function formStateResponseProvider() {
    return [
        [
            'Symfony\\Component\\HttpFoundation\\Response',
            'response',
        ],
        [
            'Symfony\\Component\\HttpFoundation\\RedirectResponse',
            'redirect',
        ],
    ];
}

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