public function EntityUsageBatchManager::__construct in Entity Usage 8.2
Creates a EntityUsageBatchManager object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
File
- src/
EntityUsageBatchManager.php, line 48
Class
- EntityUsageBatchManager
- Manages Entity Usage integration with Batch API.
Namespace
Drupal\entity_usageCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation, ConfigFactoryInterface $config_factory) {
$this->entityTypeManager = $entity_type_manager;
$this->stringTranslation = $string_translation;
$this->config = $config_factory
->get('entity_usage.settings');
}