Mercurial > hg > isophonics-drupal-site
comparison core/modules/rdf/src/Tests/Field/TestDataConverter.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\rdf\Tests\Field; | |
4 | |
5 /** | |
6 * Contains methods for test data conversions. | |
7 */ | |
8 class TestDataConverter { | |
9 | |
10 /** | |
11 * Converts data into a string for placement into a content attribute. | |
12 * | |
13 * @param array $data | |
14 * The data to be altered and placed in the content attribute. | |
15 * | |
16 * @return string | |
17 * Returns the data. | |
18 */ | |
19 public static function convertFoo($data) { | |
20 return 'foo' . $data['value']; | |
21 } | |
22 | |
23 } |