Defines the database file usage backend. This is the default Drupal backend.
Hierarchy
- class \Drupal\file\FileUsage\FileUsageBase implements FileUsageInterface
- class \Drupal\file\FileUsage\DatabaseFileUsageBackend
File
- core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php, line 11
Namespace
Drupal\file\FileUsage
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DatabaseFileUsageBackend::$connection | protected | property | The database connection used to store file usage information. |
DatabaseFileUsageBackend::$tableName | protected | property | The name of the SQL table used to store file usage information. |
DatabaseFileUsageBackend::add | public | function | Records that a module is using a file. Overrides FileUsageBase::add |
DatabaseFileUsageBackend::delete | public | function | Removes a record to indicate that a module is no longer using a file. Overrides FileUsageBase::delete |
DatabaseFileUsageBackend::listUsage | public | function | Determines where a file is used. Overrides FileUsageInterface::listUsage |
DatabaseFileUsageBackend::__construct | public | function | Construct the DatabaseFileUsageBackend. |
Please login to continue.