You are here

function hook_favicon_cache_data_alter in Favicon 7.2

Alter the favicon cache data.

Parameters

array $data: An array of cache data which will be serialized into a cache ID used to fetch the current favicon file. By default this contains

See also

DrupalFavicon::fetchFile()

1 invocation of hook_favicon_cache_data_alter()
DrupalFavicon::fetchFile in src/DrupalFavicon.php
Fetches the favicon file object.

File

./favicon.api.php, line 47
API integration for the Favicon module.

Code

function hook_favicon_cache_data_alter(array &$data) {
  $data['uid'] = $GLOBALS['user']->uid;
}