Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / rdf / tests / rdf_test / src / TestDataConverter.php
diff --git a/web/core/modules/rdf/tests/rdf_test/src/TestDataConverter.php b/web/core/modules/rdf/tests/rdf_test/src/TestDataConverter.php
new file mode 100644 (file)
index 0000000..08bbdd3
--- /dev/null
@@ -0,0 +1,23 @@
+<?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'];
+  }
+
+}