function StringFieldRdfaTest::testStringFormatters
Tests string formatters.
File
-
core/
modules/ rdf/ tests/ src/ Kernel/ Field/ StringFieldRdfaTest.php, line 57
Class
- StringFieldRdfaTest
- Tests RDFa output by text field formatters.
Namespace
Drupal\Tests\rdf\Kernel\FieldCode
public function testStringFormatters() {
// Tests the string formatter.
$this->assertFormatterRdfa([
'type' => 'string',
], 'http://schema.org/text', [
'value' => $this->testValue,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.