Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / releeph / field / specification / ReleephDependsOnFieldSpecification.php
blobacb5d7d11d0276b52ef3f30341f8bd50b1074b3c
1 <?php
3 final class ReleephDependsOnFieldSpecification
4 extends ReleephFieldSpecification {
6 public function getFieldKey() {
7 return 'dependsOn';
10 public function getName() {
11 return pht('Depends On');
14 public function getRequiredHandlePHIDsForPropertyView() {
15 return $this->getDependentRevisionPHIDs();
18 public function renderPropertyViewValue(array $handles) {
19 return $this->renderHandleList($handles);
22 private function getDependentRevisionPHIDs() {
23 $requested_object = $this->getObject()->getRequestedObjectPHID();
24 if (!($requested_object instanceof DifferentialRevision)) {
25 return array();
28 $revision = $requested_object;
30 return PhabricatorEdgeQuery::loadDestinationPHIDs(
31 $revision->getPHID(),
32 DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST);