--- /dev/null
+/**
+ * Implements hook_preprocess_HOOK().
+ */
+function {{ machine_name }}_preprocess_HOOK(&$variables) {
+ // This example is from rdf_preprocess_image(). It adds an RDF attribute
+ // to the image hook's variables.
+ $variables['attributes']['typeof'] = ['foaf:Image'];
+}