You are here

public function ServiceAuditFilesUsedNotManaged::__construct in Audit Files 8.2

Same name and namespace in other branches
  1. 8.3 src/ServiceAuditFilesUsedNotManaged.php \Drupal\auditfiles\ServiceAuditFilesUsedNotManaged::__construct()
  2. 4.x src/ServiceAuditFilesUsedNotManaged.php \Drupal\auditfiles\ServiceAuditFilesUsedNotManaged::__construct()

Define constructor for string translation.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $translation: A Tranlation Serevice object.

\Drupal\Core\Config\ConfigFactory $config_factory: A configuration factory object.

\Drupal\Core\Database\Connection $connection: A database connection for queries.

File

src/ServiceAuditFilesUsedNotManaged.php, line 45

Class

ServiceAuditFilesUsedNotManaged
Form for Files used not managed functionality.

Namespace

Drupal\auditfiles

Code

public function __construct(TranslationInterface $translation, ConfigFactory $config_factory, Connection $connection) {
  $this->stringTranslation = $translation;
  $this->configFactory = $config_factory;
  $this->connection = $connection;
}