function ProjectInfo::getSupportedBranches
Gets the supported branches of the project.
Return value
string[] The supported branches.
File
-
core/
modules/ package_manager/ src/ ProjectInfo.php, line 225
Class
- ProjectInfo
- Defines a class for retrieving project information from Update module.
Namespace
Drupal\package_managerCode
public function getSupportedBranches() : array {
$available_updates = $this->getAvailableProjects()[$this->name];
return isset($available_updates['supported_branches']) ? explode(',', $available_updates['supported_branches']) : [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.