Changeset View
Changeset View
Standalone View
Standalone View
src/applications/typeahead/view/PhabricatorTypeaheadTokenView.php
Show All 38 Lines | if ($handle->isDisabled() || | ||||
$token->setTokenType(self::TYPE_DISABLED); | $token->setTokenType(self::TYPE_DISABLED); | ||||
} else { | } else { | ||||
$token->setColor($handle->getTagColor()); | $token->setColor($handle->getTagColor()); | ||||
} | } | ||||
return $token; | return $token; | ||||
} | } | ||||
public function isInvalid() { | |||||
return ($this->getTokenType() == self::TYPE_INVALID); | |||||
} | |||||
public function setKey($key) { | public function setKey($key) { | ||||
$this->key = $key; | $this->key = $key; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getKey() { | public function getKey() { | ||||
return $this->key; | return $this->key; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |