class TestDataConverter in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/rdf/src/Tests/Field/TestDataConverter.php \Drupal\rdf\Tests\Field\TestDataConverter
Contains methods for test data conversions.
Hierarchy
- class \Drupal\rdf\Tests\Field\TestDataConverter
Expanded class hierarchy of TestDataConverter
File
- core/
modules/ rdf/ src/ Tests/ Field/ TestDataConverter.php, line 12 - Contains \Drupal\rdf\Tests\Field\TestDataConverter.
Namespace
Drupal\rdf\Tests\FieldView source
class TestDataConverter {
/**
* Converts data into a string for placement into a content attribute.
*
* @param array $data
* The data to be altered and placed in the content attribute.
*
* @return string
* Returns the data.
*/
static function convertFoo($data) {
return 'foo' . $data['value'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestDataConverter:: |
static | function | Converts data into a string for placement into a content attribute. |