UpdateFetcherInterface
interface UpdateFetcherInterface (View source)
Fetches project information from remote locations.
Constants
| NOT_CHECKED |
Project's status cannot be checked. |
| UNKNOWN |
No available update data was found for project. |
| NOT_FETCHED |
There was a failure fetching available update data for this project. |
| FETCH_PENDING |
We need to (re)fetch available update data for this project. |
Methods
Returns the base of the URL to fetch available update data for a project.
Retrieves the project information.
Generates the URL to fetch information about project updates.
Details
string
getFetchBaseUrl(array $project)
Returns the base of the URL to fetch available update data for a project.
string
fetchProjectData(array $project, string $site_key = '')
Retrieves the project information.
string
buildFetchUrl(array $project, string $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.