You are here

public function LinkAllyFormatterTest::providerLinkText in Element Class Formatter 8

Data provider for link text.

Return value

array Test cases.

File

tests/src/Functional/LinkAllyFormatterTest.php, line 87

Class

LinkAllyFormatterTest
Defines a class for testing LinkAllyFormatter.

Namespace

Drupal\Tests\element_class_formatter\Functional

Code

public function providerLinkText() {
  return [
    'use field value' => [],
    'use custom' => [
      'Read more',
    ],
    'use wrapper' => [
      'Read more',
      'p',
    ],
  ];
}