TestDataConverter.php

Same filename in other branches
  1. 8.9.x core/modules/rdf/tests/rdf_test/src/TestDataConverter.php

Namespace

Drupal\rdf_test

File

core/modules/rdf/tests/rdf_test/src/TestDataConverter.php

View source
<?php

namespace Drupal\rdf_test;


/**
 * Contains methods for test data conversions.
 */
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'];
    }

}

Classes

Title Deprecated Summary
TestDataConverter Contains methods for test data conversions.

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