By nicxvan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.5.x
Introduced in version:
11.5.0
Issue links:
Description:
The following functions have been deprecated:
update_process_project_infoupdate_calculate_project_dataupdate_calculate_project_update_status
Before:
update_calculate_project_data($available)
After:
\Drupal::service(UpdateManagerInterface::class)->calculateProjectData($available)
The UpdateCalculator service is internal.
Before:
update_process_project_info(&$projects)
After:
\Drupal::service(UpdateCalculator::class)->processProjectInfo($projects)
Before:
update_calculate_project_update_status(&$project_data, $available)
After:
$project_data = \Drupal::service(UpdateCalculator::class)
->updateProjectStatus(
UpdateProject::createFromArray($project_data),
UpdateServerProjectInfo::createFromArray($available)
)
->toArray();
There is a new UpdateProject value object for managing the project information.
There is a new UpdateServerProjectInfo value object for managing available update information.
Impacts:
Module developers