Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 2 |
| TestDataConverter | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
| convertFoo | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\rdf\Tests\Field\TestDataConverter. | |
| */ | |
| namespace Drupal\rdf\Tests\Field; | |
| /** | |
| * Contains methods for test data conversions. | |
| */ | |
| 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']; | |
| } | |
| } |