You are here

class TestDataConverter in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/rdf/tests/rdf_test/src/TestDataConverter.php \Drupal\rdf_test\TestDataConverter

Contains methods for test data conversions.

Hierarchy

Expanded class hierarchy of TestDataConverter

File

core/modules/rdf/tests/rdf_test/src/TestDataConverter.php, line 8

Namespace

Drupal\rdf_test
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.
   */
  public static function convertFoo($data) {
    return 'foo' . $data['value'];
  }

}

Members

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