function FileUsageBase::__construct
Same name in other branches
- 9 core/modules/file/src/FileUsage/FileUsageBase.php \Drupal\file\FileUsage\FileUsageBase::__construct()
- 8.9.x core/modules/file/src/FileUsage/FileUsageBase.php \Drupal\file\FileUsage\FileUsageBase::__construct()
- 11.x core/modules/file/src/FileUsage/FileUsageBase.php \Drupal\file\FileUsage\FileUsageBase::__construct()
Creates a FileUsageBase object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
1 method overrides FileUsageBase::__construct()
- DatabaseFileUsageBackend::__construct in core/
modules/ file/ src/ FileUsage/ DatabaseFileUsageBackend.php - Construct the DatabaseFileUsageBackend.
File
-
core/
modules/ file/ src/ FileUsage/ FileUsageBase.php, line 26
Class
- FileUsageBase
- Defines the base class for database file usage backend.
Namespace
Drupal\file\FileUsageCode
public function __construct(ConfigFactoryInterface $config_factory) {
$this->configFactory = $config_factory;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.