You are here

public function FileUsageBase::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/src/FileUsage/FileUsageBase.php \Drupal\file\FileUsage\FileUsageBase::__construct()
  2. 9 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\FileUsage

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $this->configFactory = $config_factory;
}