DatabaseFileUsageBackend::__construct

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

1
2
3
4
5
public function __construct(Connection $connection, $table = 'file_usage') {
  $this->connection = $connection;
 
  $this->tableName = $table;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.