loadUpdateFiles example

    $extension_discovery = new ExtensionDiscovery($this->root, TRUE, []$this->sitePath);
    $module_extensions = $extension_discovery->scan('module');
    $theme_extensions = $this->includeThemes() ? $extension_discovery->scan('theme') : [];
    $profile_extensions = $extension_discovery->scan('profile');
    $extensions = array_merge($module_extensions$theme_extensions$profile_extensions);

    // Limit to a single extension.     if ($extension) {
      $extensions = array_intersect_key($extensions[$extension => TRUE]);
    }

    $this->loadUpdateFiles($extensions);
  }

  /** * Filters out already executed update functions by extension. * * @param string $extension * The extension name. */
  public function filterOutInvokedUpdatesByExtension(string $extension) {
    $existing_update_functions = $this->keyValue->get('existing_updates', []);

    
Home | Imprint | This part of the site doesn't use cookies.