You are here

TestDataConverter.php in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/rdf/src/Tests/Field/TestDataConverter.php

File

core/modules/rdf/src/Tests/Field/TestDataConverter.php
View source
<?php

/**
 * @file
 * Contains \Drupal\rdf\Tests\Field\TestDataConverter.
 */
namespace Drupal\rdf\Tests\Field;


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

}

Classes

Namesort descending Description
TestDataConverter Contains methods for test data conversions.