file.usage

Same name and namespace in other branches
  1. 10 core/modules/file/file.services.yml \file.usage
  2. 11.x core/modules/file/file.services.yml \file.usage
  3. 9 core/modules/file/file.services.yml \file.usage
  4. 8.9.x core/modules/file/file.services.yml \file.usage

Class

Drupal\file\FileUsage\DatabaseFileUsageBackend

Tags

  • backend_overridable
18 string references to file.usage
CopyTest::testEntityStorageException in core/modules/file/tests/src/Kernel/CopyTest.php
Tests for entity storage exception.
DeleteTest::testInUse in core/modules/file/tests/src/Kernel/DeleteTest.php
Tries deleting a file that is in use.
EditorFileUsageTest::testEditorEntityHooks in core/modules/editor/tests/src/Kernel/EditorFileUsageTest.php
Tests the configurable text editor manager.
EditorHooks::deleteFileUsage in core/modules/editor/src/Hook/EditorHooks.php
Deletes file usage of files referenced by formatted text fields.
EditorHooks::recordFileUsage in core/modules/editor/src/Hook/EditorHooks.php
Records file usage of files referenced by formatted text fields.

... See full list

File

core/modules/file/file.services.yml

View source
  1. class: Drupal\file\FileUsage\DatabaseFileUsageBackend
  2. tags:
  3. - { name: backend_overridable }

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