Differential D18887 Diff 45333 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldTokenizer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldTokenizer.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | public function getHeraldActionEffectDescription($value) { | ||||
return $this->renderHeraldHandleList($value); | return $this->renderHeraldHandleList($value); | ||||
} | } | ||||
public function getHeraldActionStandardType() { | public function getHeraldActionStandardType() { | ||||
return HeraldAction::STANDARD_PHID_LIST; | return HeraldAction::STANDARD_PHID_LIST; | ||||
} | } | ||||
public function getHeraldActionDatasource() { | public function getHeraldActionDatasource() { | ||||
return $this->getDatasource(); | $datasource = $this->getDatasource(); | ||||
$limit = $this->getFieldConfigValue('limit'); | |||||
if ($limit) { | |||||
$datasource->setLimit($limit); | |||||
} | |||||
return $datasource; | |||||
} | } | ||||
private function renderHeraldHandleList($value) { | private function renderHeraldHandleList($value) { | ||||
if (!is_array($value)) { | if (!is_array($value)) { | ||||
return pht('(Invalid List)'); | return pht('(Invalid List)'); | ||||
} else { | } else { | ||||
return $this->getViewer() | return $this->getViewer() | ||||
->renderHandleList($value) | ->renderHandleList($value) | ||||
->setAsInline(true) | ->setAsInline(true) | ||||
->render(); | ->render(); | ||||
} | } | ||||
} | } | ||||
} | } |