You are here

public function NodeRevisionDelete::__construct in Node Revision Delete 8

Constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

src/NodeRevisionDelete.php, line 71

Class

NodeRevisionDelete
Class NodeRevisionDelete.

Namespace

Drupal\node_revision_delete

Code

public function __construct(ConfigFactoryInterface $config_factory, TranslationInterface $string_translation, Connection $connection, EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager) {
  $this->configurationFileName = 'node_revision_delete.settings';
  $this->configFactory = $config_factory;
  $this->stringTranslation = $string_translation;
  $this->connection = $connection;
  $this->entityTypeManager = $entity_type_manager;
  $this->languageManager = $language_manager;
}