class UpdateHookRegistryFactory

Same name in other branches
  1. 9 core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php \Drupal\Core\Update\UpdateHookRegistryFactory
  2. 10 core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php \Drupal\Core\Update\UpdateHookRegistryFactory

Service factory for the versioning update registry.

Hierarchy

  • class \Drupal\Core\Update\UpdateHookRegistryFactory implements \Symfony\Component\DependencyInjection\ContainerAwareInterface uses \Symfony\Component\DependencyInjection\ContainerAwareTrait

Expanded class hierarchy of UpdateHookRegistryFactory

File

core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php, line 11

Namespace

Drupal\Core\Update
View source
class UpdateHookRegistryFactory implements ContainerAwareInterface {
    use ContainerAwareTrait;
    
    /**
     * Creates a new UpdateHookRegistry instance.
     *
     * @return \Drupal\Core\Update\UpdateHookRegistry
     *   The update registry instance.
     */
    public function create() {
        return new UpdateHookRegistry(array_keys($this->container
            ->get('module_handler')
            ->getModuleList()), $this->container
            ->get('keyvalue')
            ->get('system.schema'));
    }

}

Members

Title Sort descending Modifiers Object type Summary
UpdateHookRegistryFactory::create public function Creates a new UpdateHookRegistry instance.

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