function LinkFormatterTest::providerLinkFormatter

Data provider for ::testLinkFormatter.

File

core/modules/link/tests/src/Kernel/LinkFormatterTest.php, line 125

Class

LinkFormatterTest
Tests the Field Formatter for the link field type.

Namespace

Drupal\Tests\link\Kernel

Code

public static function providerLinkFormatter() : array {
  return [
    'default formatter' => [
      'link',
    ],
    'separate link text and URL' => [
      'link_separate',
    ],
  ];
}

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