Differential D9884 Diff 23734 src/applications/differential/customfield/DifferentialProjectsField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialProjectsField.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | final class DifferentialProjectsField | ||||
public function getRequiredHandlePHIDsForEdit() { | public function getRequiredHandlePHIDsForEdit() { | ||||
return $this->getValue(); | return $this->getValue(); | ||||
} | } | ||||
public function renderEditControl(array $handles) { | public function renderEditControl(array $handles) { | ||||
return id(new AphrontFormTokenizerControl()) | return id(new AphrontFormTokenizerControl()) | ||||
->setName($this->getFieldKey()) | ->setName($this->getFieldKey()) | ||||
->setDatasource('/typeahead/common/projects/') | ->setDatasource(new PhabricatorProjectDatasource()) | ||||
->setValue($handles) | ->setValue($handles) | ||||
->setLabel($this->getFieldName()); | ->setLabel($this->getFieldName()); | ||||
} | } | ||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return PhabricatorTransactions::TYPE_EDGE; | return PhabricatorTransactions::TYPE_EDGE; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |