Skip to content
Snippets Groups Projects

Add BC to EntityUsageBatchManager class constructor

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