class TestDataConverter
Same name in other branches
- 8.9.x core/modules/rdf/tests/rdf_test/src/TestDataConverter.php \Drupal\rdf_test\TestDataConverter
Contains methods for test data conversions.
Hierarchy
- class \Drupal\rdf_test\TestDataConverter
Expanded class hierarchy of TestDataConverter
File
-
core/
modules/ rdf/ tests/ rdf_test/ src/ TestDataConverter.php, line 8
Namespace
Drupal\rdf_testView 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.
*/
public static function convertFoo($data) {
return 'foo' . $data['value'];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestDataConverter::convertFoo | public static | function | Converts data into a string for placement into a content attribute. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.