function UpdateHookRegistryFactory::create

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php \Drupal\Core\Update\UpdateHookRegistryFactory::create()
  2. 10 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\Update

Code

public function create() {
    return new UpdateHookRegistry(array_keys($this->container
        ->get('module_handler')
        ->getModuleList()), $this->container
        ->get('keyvalue')
        ->get('system.schema'));
}

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