projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
vendor
/
chi-teck
/
drupal-code-generator
/
templates
/
d7
/
hook
/
block_cid_parts_alter.twig
1
/**
2
* Implements hook_block_cid_parts_alter().
3
*/
4
function {{ machine_name }}_block_cid_parts_alter(&$cid_parts, $block) {
5
global $user;
6
// This example shows how to cache a block based on the user's timezone.
7
$cid_parts[] = $user->timezone;
8
}