Differential D12459 Diff 29955 src/applications/people/typeahead/PhabricatorUserProjectsDatasource.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/typeahead/PhabricatorUserProjectsDatasource.php
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | public function renderFunctionTokens($function, array $argv_list) { | ||||
$tokens = $this->renderTokens($phids); | $tokens = $this->renderTokens($phids); | ||||
foreach ($tokens as $token) { | foreach ($tokens as $token) { | ||||
if ($token->isInvalid()) { | if ($token->isInvalid()) { | ||||
$token | $token | ||||
->setValue(pht('Projects: Invalid User')); | ->setValue(pht('Projects: Invalid User')); | ||||
} else { | } else { | ||||
$token | $token | ||||
->setIcon('fa-users') | |||||
->setTokenType(PhabricatorTypeaheadTokenView::TYPE_FUNCTION) | ->setTokenType(PhabricatorTypeaheadTokenView::TYPE_FUNCTION) | ||||
->setKey('projects('.$token->getKey().')') | ->setKey('projects('.$token->getKey().')') | ||||
->setValue(pht('Projects: %s', $token->getValue())); | ->setValue(pht('Projects: %s', $token->getValue())); | ||||
} | } | ||||
} | } | ||||
return $tokens; | return $tokens; | ||||
} | } | ||||
} | } |