public DatabaseFileUsageBackend::__construct(Connection $connection, $table = 'file_usage')
Construct the DatabaseFileUsageBackend.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection which will be used to store the file usage information.
string $table: (optional) The table to store file usage info. Defaults to 'file_usage'.
File
- core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php, line 36
Class
- DatabaseFileUsageBackend
- Defines the database file usage backend. This is the default Drupal backend.
Namespace
Drupal\file\FileUsage
Code
public function __construct(Connection $connection, $table = 'file_usage') { $this->connection = $connection; $this->tableName = $table; }
Please login to continue.