class TestDataConverter

Same name in other branches
  1. 9 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

Title Sort descending Modifiers Object type Summary
TestDataConverter::convertFoo public static function Converts data into a string for placement into a content attribute.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.