public function AnonymizeRecords::__construct in Library 8
Constructor.
Parameters
\Drupal\Core\Config\ConfigFactory $config: Config for settings.
\Drupal\Core\State\StateInterface $state: State.
\Drupal\Core\Logger\LoggerChannelInterface $logger: Logger.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.
File
- src/
AnonymizeRecords.php, line 62
Class
- AnonymizeRecords
- Anonymize records helper.
Namespace
Drupal\libraryCode
public function __construct(ConfigFactory $config, StateInterface $state, LoggerChannelInterface $logger, EntityTypeManagerInterface $entity_type_manager) {
$this->config = $config
->get('library.settings');
$this->state = $state;
$this->logger = $logger;
$this->entityTypeManager = $entity_type_manager;
$this->transactionStorage = $entity_type_manager
->getStorage('library_transaction');
}