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

public function __construct(Connection $connection, $table = 'file_usage') {
  $this->connection = $connection;

  $this->tableName = $table;
}
doc_Drupal
2016-10-29 08:59:45
Comments
Leave a Comment

Please login to continue.