FileAccessFunctionsAlignedTestCase::testFileAccessFunctions in core/modules/file/tests/file.test
Verify that both, file_access() and File::access() return the same value.
FileAccessTestCase::assertFileAccess in core/modules/file/tests/file.test
Asserts file_access correctly grants or denies access.
file_entity_access in core/modules/file/file.module
Deprecated wrapper function. Determines if a user may perform the given operation on the specified file.
file_field_formatter_view in core/modules/file/file.field.inc
Implements hook_field_formatter_view().
file_file_download in core/modules/file/file.module
Implements hook_file_download().
file_get_filetype_candidates in core/modules/file/file.pages.inc
Get the candidate filetypes for a given file.