Page MenuHomePhorge

DifferentialDependenciesField.php
No OneTemporary

Size
895 B
Referenced Files
None
Subscribers
None

DifferentialDependenciesField.php

<?php
final class DifferentialDependenciesField
extends DifferentialCustomField {
public function getFieldKey() {
return 'differential:dependencies';
}
public function getFieldName() {
return pht('Dependencies');
}
public function canDisableField() {
return false;
}
public function getFieldDescription() {
return pht('Lists revisions this one is depended on by.');
}
public function shouldAppearInPropertyView() {
return true;
}
public function renderPropertyViewLabel() {
return $this->getFieldName();
}
public function getRequiredHandlePHIDsForPropertyView() {
return PhabricatorEdgeQuery::loadDestinationPHIDs(
$this->getObject()->getPHID(),
PhabricatorEdgeConfig::TYPE_DREV_DEPENDED_ON_BY_DREV);
}
public function renderPropertyViewValue(array $handles) {
return $this->renderHandleList($handles);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, May 4, 7:05 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
67313
Default Alt Text
DifferentialDependenciesField.php (895 B)

Event Timeline