public function UpdateHookRegistryFactory::create in Drupal 9
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'));
}