Commit be8126ff authored by webchick's avatar webchick

Issue #1245220 follow-up by Berdir: Fix test.

parent cc956f5a
......@@ -6,6 +6,7 @@
*/
use Drupal\entity\EntityInterface;
use Drupal\Core\File\File;
/**
* Implements hook_menu().
......@@ -74,7 +75,7 @@ function file_module_test_form_submit($form, &$form_state) {
/**
* Implements hook_file_download_access().
*/
function file_module_test_file_download_access($field, EntityInterface $entity, $field_item) {
function file_module_test_file_download_access($field, EntityInterface $entity, File $file) {
$instance = field_info_instance($entity->entityType(), $field['field_name'], $entity->bundle());
// Allow the file to be downloaded only if the given arguments are correct.
// If any are wrong, $instance will be NULL.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment