UpdateFetcher::UPDATE_DEFAULT_URL

URL to check for updates, if a given project doesn't define its own. File core/modules/update/src/UpdateFetcher.php, line 20 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code const UPDATE_DEFAULT_URL = 'http://updates.drupal.org/release-history';

UpdateFetcher::__construct

public UpdateFetcher::__construct(ConfigFactoryInterface $config_factory, ClientInterface $http_client) Constructs a UpdateFetcher. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \GuzzleHttp\ClientInterface $http_client: A Guzzle client object. File core/modules/update/src/UpdateFetcher.php, line 51 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code public function __construct(ConfigFactoryInt

UpdateFetcherInterface

Fetches project information from remote locations. Hierarchy interface \Drupal\update\UpdateFetcherInterface File core/modules/update/src/UpdateFetcherInterface.php, line 8 Namespace Drupal\update Members Name Modifiers Type Description UpdateFetcherInterface::buildFetchUrl public function Generates the URL to fetch information about project updates. UpdateFetcherInterface::fetchProjectData public function Retrieves the project information. UpdateFetcherInterfa

UpdateFetcherInterface::buildFetchUrl

public UpdateFetcherInterface::buildFetchUrl(array $project, $site_key = '') Generates the URL to fetch information about project updates. This figures out the right URL to use, based on the project's .info.yml file and the global defaults. Appends optional query arguments when the site is configured to report usage stats. Parameters array $project: The array of project information from \Drupal\Update\UpdateManager::getProjects(). string $site_key: (optional) The anonymous site key hash. Defau

UpdateFetcherInterface::fetchProjectData

public UpdateFetcherInterface::fetchProjectData(array $project, $site_key = '') Retrieves the project information. Parameters array $project: The array of project information from \Drupal\Update\UpdateManager::getProjects(). string $site_key: (optional) The anonymous site key hash. Defaults to an empty string. Return value string The project information fetched as string. Empty string upon failure. File core/modules/update/src/UpdateFetcherInterface.php, line 36 Class UpdateFetcherInterfa

UpdateFetcherInterface::getFetchBaseUrl

public UpdateFetcherInterface::getFetchBaseUrl($project) Returns the base of the URL to fetch available update data for a project. Parameters array $project: The array of project information from \Drupal\Update\UpdateManager::getProjects(). Return value string The base of the URL used for fetching available update data. This does not include the path elements to specify a particular project, version, site_key, etc. File core/modules/update/src/UpdateFetcherInterface.php, line 22 Class Upd

UpdateKernel

Defines a kernel which is used primarily to run the update of Drupal. We use a dedicated kernel + front controller (update.php) in order to be able to repair Drupal if it is in a broken state. Hierarchy class \Drupal\Core\DrupalKernel implements DrupalKernelInterface, TerminableInterfaceclass \Drupal\Core\Update\UpdateKernel See also update.php \Drupal\system\Controller\DbUpdateController File core/lib/Drupal/Core/Update/UpdateKernel.php, line 22 Namespace Drupal\Core\Update Members

UpdateKernel::bootSession

protected UpdateKernel::bootSession(Request $request) Boots up the session. bootSession() + shutdownSession() basically simulates what \Drupal\Core\StackMiddleware\Session does. Parameters \Symfony\Component\HttpFoundation\Request $request: The incoming request. File core/lib/Drupal/Core/Update/UpdateKernel.php, line 122 Class UpdateKernel Defines a kernel which is used primarily to run the update of Drupal. Namespace Drupal\Core\Update Code protected function bootSession(Request $req

UpdateKernel::cacheDrupalContainer

protected UpdateKernel::cacheDrupalContainer(array $container_definition) Stores the container definition in a cache. Parameters array $container_definition: The container definition to cache. Return value bool TRUE if the container was successfully cached. Overrides DrupalKernel::cacheDrupalContainer File core/lib/Drupal/Core/Update/UpdateKernel.php, line 47 Class UpdateKernel Defines a kernel which is used primarily to run the update of Drupal. Namespace Drupal\Core\Update Code pro

UpdateKernel::discoverServiceProviders

public UpdateKernel::discoverServiceProviders() Discovers available serviceProviders. Return value array The available serviceProviders. Overrides DrupalKernel::discoverServiceProviders File core/lib/Drupal/Core/Update/UpdateKernel.php, line 27 Class UpdateKernel Defines a kernel which is used primarily to run the update of Drupal. Namespace Drupal\Core\Update Code public function discoverServiceProviders() { parent::discoverServiceProviders(); $this->serviceProviderClasses['a