ProjectInfo
class ProjectInfo (View source)
Performs operations on drupal.org project data.
Methods
Populates an array of project data.
Filters the project .info.yml data to only save attributes we need.
Details
processInfoList(array $projects, array $list, string $project_type, bool $status, array $additional_elements = [])
Populates an array of project data.
This iterates over a list of the installed modules or themes and groups them by project and status. A few parts of this function assume that enabled modules and themes are always processed first, and if uninstalled modules or themes are being processed (there is a setting to control if uninstalled code should be included in the Available updates report or not),those are only processed after $projects has been populated with information about the enabled code. 'Hidden' modules and themes are ignored if they are not installed. 'Hidden' Modules and themes in the "Testing" package are ignored regardless of installation status.
This function also records the latest change time on the .info.yml files for each module or theme, which is important data which is used when deciding if the available update data should be invalidated.
string
getProjectName(Extension $file)
Determines what project a given file object belongs to.
array
filterProjectInfo(array $info, $additional_elements = [])
Filters the project .info.yml data to only save attributes we need.