Differential D11074 Diff 26680 src/applications/differential/customfield/DifferentialDependsOnField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialDependsOnField.php
Show All 28 Lines | final class DifferentialDependsOnField | ||||
public function renderPropertyViewLabel() { | public function renderPropertyViewLabel() { | ||||
return $this->getFieldName(); | return $this->getFieldName(); | ||||
} | } | ||||
public function getRequiredHandlePHIDsForPropertyView() { | public function getRequiredHandlePHIDsForPropertyView() { | ||||
return PhabricatorEdgeQuery::loadDestinationPHIDs( | return PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$this->getObject()->getPHID(), | $this->getObject()->getPHID(), | ||||
PhabricatorEdgeConfig::TYPE_DREV_DEPENDS_ON_DREV); | DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST); | ||||
} | } | ||||
public function renderPropertyViewValue(array $handles) { | public function renderPropertyViewValue(array $handles) { | ||||
return $this->renderHandleList($handles); | return $this->renderHandleList($handles); | ||||
} | } | ||||
public function getProTips() { | public function getProTips() { | ||||
return array( | return array( | ||||
pht( | pht( | ||||
'Create a dependency between revisions by writing '. | 'Create a dependency between revisions by writing '. | ||||
'"Depends on D123" in your summary.'), | '"Depends on D123" in your summary.'), | ||||
); | ); | ||||
} | } | ||||
public function shouldAppearInConduitDictionary() { | public function shouldAppearInConduitDictionary() { | ||||
return true; | return true; | ||||
} | } | ||||
public function getConduitDictionaryValue() { | public function getConduitDictionaryValue() { | ||||
return PhabricatorEdgeQuery::loadDestinationPHIDs( | return PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$this->getObject()->getPHID(), | $this->getObject()->getPHID(), | ||||
PhabricatorEdgeConfig::TYPE_DREV_DEPENDS_ON_DREV); | DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST); | ||||
} | } | ||||
} | } |