public function UpdateHookRegistryFactory::create in Drupal 10
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php \Drupal\Core\Update\UpdateHookRegistryFactory::create()
Creates a new UpdateHookRegistry instance.
Return value
\Drupal\Core\Update\UpdateHookRegistry The update registry instance.
File
- core/
lib/ Drupal/ Core/ Update/ UpdateHookRegistryFactory.php, line 21
Class
- UpdateHookRegistryFactory
- Service factory for the versioning update registry.
Namespace
Drupal\Core\UpdateCode
public function create() {
return new UpdateHookRegistry(array_keys($this->container
->get('module_handler')
->getModuleList()), $this->container
->get('keyvalue')
->get('system.schema'));
}