file.repository

Same name in other branches
  1. 10 core/modules/file/file.services.yml \file.repository
  2. 11.x core/modules/file/file.services.yml \file.repository

Class

Drupal\file\FileRepository
17 string references to file.repository
CopyTest::setUp in core/modules/file/tests/src/Kernel/CopyTest.php
editor_file_download in core/modules/editor/editor.module
Implements hook_file_download().
FileFieldWidgetTest::createTemporaryFile in core/modules/file/tests/src/Functional/FileFieldWidgetTest.php
Creates a temporary file, for a specific user.
FileItem::generateSampleValue in core/modules/file/src/Plugin/Field/FieldType/FileItem.php
Generates placeholder field values.
FileMoveTest::setUp in core/modules/image/tests/src/Functional/FileMoveTest.php

... See full list

File

core/modules/file/file.services.yml

View source
  1. class: Drupal\file\FileRepository
  2. arguments:
  3. - '@file_system'
  4. - '@stream_wrapper_manager'
  5. - '@entity_type.manager'
  6. - '@module_handler'
  7. - '@file.usage'
  8. - '@current_user'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.