You are here

class TestDataConverter 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

Contains methods for test data conversions.

Hierarchy

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\Field
View 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

Namesort descending Modifiers Type Description Overrides
TestDataConverter::convertFoo static function Converts data into a string for placement into a content attribute.