You are here

public function ConfigEntityUpdater::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityUpdater.php \Drupal\Core\Config\Entity\ConfigEntityUpdater::__construct()

ConfigEntityUpdater constructor.

Parameters

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

int $batch_size: The number of entities to process in each batch.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityUpdater.php, line 54

Class

ConfigEntityUpdater
A utility class to make updating configuration entities simple.

Namespace

Drupal\Core\Config\Entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, $batch_size) {
  $this->entityTypeManager = $entity_type_manager;
  $this->batchSize = $batch_size;
}