projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull merge.
[yaffs-website]
/
web
/
core
/
modules
/
file
/
src
/
FileUsage
/
DatabaseFileUsageBackend.php
diff --git
a/web/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php
b/web/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php
index cfb0c447a685b5d0fd82887748ee054d9957326c..2b1995437e2905a4734f5c107c81faab5a18f589 100644
(file)
--- a/
web/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php
+++ b/
web/core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php
@@
-2,6
+2,7
@@
namespace Drupal\file\FileUsage;
namespace Drupal\file\FileUsage;
+use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Database\Connection;
use Drupal\file\FileInterface;
use Drupal\Core\Database\Connection;
use Drupal\file\FileInterface;
@@
-32,8
+33,11
@@
class DatabaseFileUsageBackend extends FileUsageBase {
* information.
* @param string $table
* (optional) The table to store file usage info. Defaults to 'file_usage'.
* information.
* @param string $table
* (optional) The table to store file usage info. Defaults to 'file_usage'.
+ * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
+ * (optional) The config factory.
*/
*/
- public function __construct(Connection $connection, $table = 'file_usage') {
+ public function __construct(Connection $connection, $table = 'file_usage', ConfigFactoryInterface $config_factory = NULL) {
+ parent::__construct($config_factory);
$this->connection = $connection;
$this->tableName = $table;
$this->connection = $connection;
$this->tableName = $table;