function LinkFieldRdfaTest::setUp
Same name in other branches
- 8.9.x core/modules/rdf/tests/src/Kernel/Field/LinkFieldRdfaTest.php \Drupal\Tests\rdf\Kernel\Field\LinkFieldRdfaTest::setUp()
Overrides FieldKernelTestBase::setUp
File
-
core/
modules/ rdf/ tests/ src/ Kernel/ Field/ LinkFieldRdfaTest.php, line 28
Class
- LinkFieldRdfaTest
- Tests the placement of RDFa in link field formatters.
Namespace
Drupal\Tests\rdf\Kernel\FieldCode
protected function setUp() : void {
parent::setUp();
$this->createTestField();
// Add the mapping.
$mapping = rdf_get_mapping('entity_test', 'entity_test');
$mapping->setFieldMapping($this->fieldName, [
'properties' => [
'schema:link',
],
])
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.