function file_load_multiple

Loads file entities from the database.

Parameters

array $fids: (optional) An array of entity IDs. If omitted, all entities are loaded.

Return value

array An array of file entities, indexed by fid.

See also

hook_file_load()

file_load()

entity_load()

Drupal\Core\Entity\Query\EntityQueryInterface

4 calls to file_load_multiple()
file_field_prepare_view in drupal/core/modules/file/file.field.inc
Implements hook_field_prepare_view().
file_load in drupal/core/modules/file/file.module
Loads a single file entity from the database.
LoadTest::testMultiple in drupal/core/modules/file/lib/Drupal/file/Tests/LoadTest.php
This will test loading file data from the database.
SaveUploadTest::testNormal in drupal/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php
Test the file_save_upload() function.

File

drupal/core/modules/file/file.module, line 105
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_load_multiple(array $fids = NULL) {
  return entity_load_multiple('file', $fids);
}