You are here

static function TestDataConverter::convertFoo in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/rdf/src/Tests/Field/TestDataConverter.php \Drupal\rdf\Tests\Field\TestDataConverter::convertFoo()

Converts data into a string for placement into a content attribute.

Parameters

array $data: The data to be altered and placed in the content attribute.

Return value

string Returns the data.

File

core/modules/rdf/src/Tests/Field/TestDataConverter.php, line 23
Contains \Drupal\rdf\Tests\Field\TestDataConverter.

Class

TestDataConverter
Contains methods for test data conversions.

Namespace

Drupal\rdf\Tests\Field

Code

static function convertFoo($data) {
  return 'foo' . $data['value'];
}