Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/phid/HarbormasterPHIDTypeBuild.php
Show All 24 Lines | final class HarbormasterPHIDTypeBuild extends PhabricatorPHIDType { | ||||
} | } | ||||
public function loadHandles( | public function loadHandles( | ||||
PhabricatorHandleQuery $query, | PhabricatorHandleQuery $query, | ||||
array $handles, | array $handles, | ||||
array $objects) { | array $objects) { | ||||
foreach ($handles as $phid => $handle) { | foreach ($handles as $phid => $handle) { | ||||
$build_plan = $objects[$phid]; | $build = $objects[$phid]; | ||||
$handles[$phid]->setName(pht( | |||||
'Build %d: %s', | |||||
$build->getID(), | |||||
$build->getName())); | |||||
$handles[$phid]->setURI( | |||||
'/harbormaster/build/'.$build->getID()); | |||||
} | } | ||||
} | } | ||||
} | } |