Skip to content
Snippets Groups Projects
Unverified Commit c8c2b963 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3100071 by ravi.shankar, benjifisher, dww: Several code comments refer...

Issue #3100071 by ravi.shankar, benjifisher, dww: Several code comments refer to \Drupal\Update instead of \Drupal\update

(cherry picked from commit 04e5bbbc)
parent 6c8d11fc
Branches
Tags
9 merge requests!1445Issue #2920039: Views' User Name exposed group filter validation,!1298Issue #3240993: Let layout builder render inline block translations,!774Issue #3174569: Example node template file name is incorrect,!497Issue #2463967: Use .user.ini file for PHP settings,!433Resolve #3163663 "Too many open files",!233Resolve #2693787 "Taxonomy term name",!133Resolve #2666286 "Clean up menuui",!112Resolve #3187004 "Drupaldatetime serialization issue",!53Resolve #3181870: Correct typo "the the" in "core/classList" deprecation message.
......@@ -91,8 +91,8 @@
* Alter the list of projects to be updated by locale's interface translation.
*
* Locale module attempts to update the translation of those modules returned
* by \Drupal\Update\UpdateManager::getProjects(). Using this hook, the data
* returned by \Drupal\Update\UpdateManager::getProjects() can be altered or
* by \Drupal\update\UpdateManager::getProjects(). Using this hook, the data
* returned by \Drupal\update\UpdateManager::getProjects() can be altered or
* extended.
*
* Modules or distributions that use a dedicated translation server should use
......@@ -109,7 +109,7 @@
* - "%language": Language code. Value examples: "fr", "pt-pt".
*
* @param array $projects
* Project data as returned by \Drupal\Update\UpdateManager::getProjects().
* Project data as returned by \Drupal\update\UpdateManager::getProjects().
*
* @see locale_translation_project_list()
* @ingroup interface_translation_properties
......
......@@ -32,7 +32,7 @@ interface UpdateFetcherInterface {
*
* @param array $project
* The array of project information from
* \Drupal\Update\UpdateManager::getProjects().
* \Drupal\update\UpdateManager::getProjects().
*
* @return string
* The base of the URL used for fetching available update data. This does
......@@ -46,7 +46,7 @@ public function getFetchBaseUrl($project);
*
* @param array $project
* The array of project information from
* \Drupal\Update\UpdateManager::getProjects().
* \Drupal\update\UpdateManager::getProjects().
* @param string $site_key
* (optional) The anonymous site key hash. Defaults to an empty string.
*
......@@ -64,7 +64,7 @@ public function fetchProjectData(array $project, $site_key = '');
*
* @param array $project
* The array of project information from
* \Drupal\Update\UpdateManager::getProjects().
* \Drupal\update\UpdateManager::getProjects().
* @param string $site_key
* (optional) The anonymous site key hash. Defaults to an empty string.
*
......
......@@ -119,7 +119,7 @@ public function refreshUpdateData() {
// of both the projects we care about, and the current update status of the
// site. We do *not* want to clear the cache of available releases just yet,
// since that data (even if it's stale) can be useful during
// \Drupal\Update\UpdateManager::getProjects(); for example, to modules
// \Drupal\update\UpdateManager::getProjects(); for example, to modules
// that implement hook_system_info_alter() such as cvs_deploy.
$this->keyValueStore->delete('update_project_projects');
$this->keyValueStore->delete('update_project_data');
......
......@@ -118,7 +118,7 @@ public function refreshUpdateData();
* @return array
* The stored value of the $projects array generated by
* update_calculate_project_data() or
* \Drupal\Update\UpdateManager::getProjects(), or an empty array when the
* \Drupal\update\UpdateManager::getProjects(), or an empty array when the
* storage is cleared.
* array when the storage is cleared.
*/
......
......@@ -32,7 +32,7 @@ public function fetchData();
*
* @param array $project
* Associative array of information about a project as created by
* \Drupal\Update\UpdateManager::getProjects(), including keys such as
* \Drupal\update\UpdateManager::getProjects(), including keys such as
* 'name' (short name), and the 'info' array with data from a .info.yml
* file for the project.
*
......
......@@ -37,7 +37,7 @@ protected function setUp() {
*
* @param array $project
* A keyed array of project information matching results from
* \Drupal\Update\UpdateManager::getProjects().
* \Drupal\update\UpdateManager::getProjects().
* @param string $site_key
* A string to mimic an anonymous site key hash.
* @param string $expected
......
......@@ -29,11 +29,11 @@
* Reference to an array of the projects installed on the system. This
* includes all the metadata documented in the comments below for each project
* (either module or theme) that is currently enabled. The array is initially
* populated inside \Drupal\Update\UpdateManager::getProjects() with the help
* populated inside \Drupal\update\UpdateManager::getProjects() with the help
* of \Drupal\Core\Utility\ProjectInfo->processInfoList(), so look there for
* examples of how to populate the array with real values.
*
* @see \Drupal\Update\UpdateManager::getProjects()
* @see \Drupal\update\UpdateManager::getProjects()
* @see \Drupal\Core\Utility\ProjectInfo::processInfoList()
*/
function hook_update_projects_alter(&$projects) {
......
......@@ -17,7 +17,7 @@
*
* @param $projects
* Array of project information from
* \Drupal\Update\UpdateManager::getProjects().
* \Drupal\update\UpdateManager::getProjects().
*/
function update_process_project_info(&$projects) {
foreach ($projects as $key => $project) {
......@@ -79,7 +79,7 @@ function update_process_project_info(&$projects) {
* An array of installed projects with current update status information.
*
* @see update_get_available()
* @see \Drupal\Update\UpdateManager::getProjects()
* @see \Drupal\update\UpdateManager::getProjects()
* @see update_process_project_info()
* @see \Drupal\update\UpdateManagerInterface::projectStorage()
*/
......
......@@ -360,7 +360,7 @@ function _update_no_data() {
* Array of data about available releases, keyed by project shortname.
*
* @see update_refresh()
* @see \Drupal\Update\UpdateManager::getProjects()
* @see \Drupal\update\UpdateManager::getProjects()
*/
function update_get_available($refresh = FALSE) {
module_load_include('inc', 'update', 'update.compare');
......@@ -459,7 +459,7 @@ function _update_equivalent_security_releases() {
*
* @param $project
* Associative array of information about a project as created by
* \Drupal\Update\UpdateManager::getProjects(), including keys such as 'name'
* \Drupal\update\UpdateManager::getProjects(), including keys such as 'name'
* (short name), and the 'info' array with data from a .info.yml file for the
* project.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment