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