Path: blob/master/src/applications/differential/customfield/DifferentialManiphestTasksField.php
12256 views
<?php12final class DifferentialManiphestTasksField3extends DifferentialCoreCustomField {45public function getFieldKey() {6return 'differential:maniphest-tasks';7}89public function canDisableField() {10return false;11}1213public function getFieldName() {14return pht('Maniphest Tasks');15}1617public function getFieldDescription() {18return pht('Lists associated tasks.');19}2021public function shouldAppearInPropertyView() {22return true;23}2425public function renderPropertyViewLabel() {26return $this->getFieldName();27}2829protected function readValueFromRevision(DifferentialRevision $revision) {30if (!$revision->getPHID()) {31return array();32}3334return PhabricatorEdgeQuery::loadDestinationPHIDs(35$revision->getPHID(),36DifferentialRevisionHasTaskEdgeType::EDGECONST);37}3839public function getRequiredHandlePHIDsForPropertyView() {40return $this->getValue();41}4243public function renderPropertyViewValue(array $handles) {44return $this->renderHandleList($handles);45}4647}484950