function LinkFieldRdfaTest::testAllFormattersFront
Tests all formatters with link to frontpage.
File
- 
              core/
modules/ rdf/ tests/ src/ Kernel/ Field/ LinkFieldRdfaTest.php, line 81  
Class
- LinkFieldRdfaTest
 - Tests the placement of RDFa in link field formatters.
 
Namespace
Drupal\Tests\rdf\Kernel\FieldCode
public function testAllFormattersFront() {
  // Set up test values.
  $this->testValue = '/';
  $this->entity = EntityTest::create([]);
  $this->entity->{$this->fieldName}->uri = 'internal:/';
  // Set up the expected result.
  $expected_rdf = [
    'value' => $this->uri . '/',
    'type' => 'uri',
  ];
  $this->runTestAllFormatters($expected_rdf, 'front');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.