function ConfigEntityUpdater::create

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityUpdater.php \Drupal\Core\Config\Entity\ConfigEntityUpdater::create()
  2. 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityUpdater.php \Drupal\Core\Config\Entity\ConfigEntityUpdater::create()
  3. 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityUpdater.php \Drupal\Core\Config\Entity\ConfigEntityUpdater::create()

Overrides ContainerInjectionInterface::create

File

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

Class

ConfigEntityUpdater
A utility class to make updating configuration entities simple.

Namespace

Drupal\Core\Config\Entity

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity_type.manager'), $container->get('settings')
        ->get('entity_update_batch_size', 50));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.