function LinkFieldFormStatesTest::linkFieldFormStatesData

Same name in other branches
  1. 10 core/modules/link/tests/src/FunctionalJavascript/LinkFieldFormStatesTest.php \Drupal\Tests\link\FunctionalJavascript\LinkFieldFormStatesTest::linkFieldFormStatesData()
  2. 11.x core/modules/link/tests/src/FunctionalJavascript/LinkFieldFormStatesTest.php \Drupal\Tests\link\FunctionalJavascript\LinkFieldFormStatesTest::linkFieldFormStatesData()

Provides data for ::testLinkFieldJSFormStates.

File

core/modules/link/tests/src/FunctionalJavascript/LinkFieldFormStatesTest.php, line 67

Class

LinkFieldFormStatesTest
Tests link field form states functionality.

Namespace

Drupal\Tests\link\FunctionalJavascript

Code

public function linkFieldFormStatesData() {
    return [
        'Fill uri, keep title empty' => [
            'https://drupal.org',
            '',
        ],
        'Fill title, keep uri empty' => [
            '',
            'https://drupal.org',
        ],
    ];
}

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