public function DatabaseFileUsageBackend::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php \Drupal\file\FileUsage\DatabaseFileUsageBackend::__construct()
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 41 - Contains \Drupal\file\FileUsage\DatabaseFileUsageBackend.
Class
- DatabaseFileUsageBackend
- Defines the database file usage backend. This is the default Drupal backend.
Namespace
Drupal\file\FileUsageCode
public function __construct(Connection $connection, $table = 'file_usage') {
$this->connection = $connection;
$this->tableName = $table;
}