Skip to content
Snippets Groups Projects

Add BC to EntityUsageBatchManager class constructor

1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -54,9 +54,13 @@ class EntityUsageBatchManager implements LoggerAwareInterface {
@@ -54,9 +54,13 @@ class EntityUsageBatchManager implements LoggerAwareInterface {
private EntityTypeManagerInterface $entityTypeManager,
private EntityTypeManagerInterface $entityTypeManager,
TranslationInterface $stringTranslation,
TranslationInterface $stringTranslation,
private ConfigFactoryInterface $configFactory,
private ConfigFactoryInterface $configFactory,
private EntityUsageInterface $entityUsage,
private ?EntityUsageInterface $entityUsage = NULL,
) {
) {
$this->setStringTranslation($stringTranslation);
$this->setStringTranslation($stringTranslation);
 
if ($entityUsage === NULL) {
 
// @phpstan-ignore-next-line
 
$this->entityUsage = \Drupal::service('entity_usage.usage');
 
}
}
}
/**
/**
Loading