Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/phid/DrydockBlueprintPHIDType.php
Show All 22 Lines | final class DrydockBlueprintPHIDType 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) { | ||||
$blueprint = $objects[$phid]; | $blueprint = $objects[$phid]; | ||||
$id = $blueprint->getID(); | $id = $blueprint->getID(); | ||||
$name = $blueprint->getBlueprintName(); | |||||
$handle->setName($blueprint->getBlueprintName()); | $handle | ||||
$handle->setURI("/drydock/blueprint/{$id}/"); | ->setName($name) | ||||
->setFullName(pht('Blueprint %d: %s', $id, $name)) | |||||
->setURI("/drydock/blueprint/{$id}/"); | |||||
} | } | ||||
} | } | ||||
} | } |