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
/
file_download_access.twig
1
/**
2
* Implements hook_file_download_access().
3
*/
4
function {{ machine_name }}_file_download_access($file_item, $entity_type, $entity) {
5
if ($entity_type == 'node') {
6
return node_access('view', $entity);
7
}
8
}