Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phid/PhabricatorObjectHandle.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | final class PhabricatorObjectHandle | ||||
public function getTagColor() { | public function getTagColor() { | ||||
if ($this->getPolicyFiltered()) { | if ($this->getPolicyFiltered()) { | ||||
return 'disabled'; | return 'disabled'; | ||||
} | } | ||||
if ($this->tagColor) { | if ($this->tagColor) { | ||||
return $this->tagColor; | return $this->tagColor; | ||||
} | } | ||||
return 'blue'; | return 'blue'; | ||||
} | } | ||||
public function getIconColor() { | |||||
if ($this->tagColor) { | |||||
return $this->tagColor; | |||||
} | |||||
return null; | |||||
} | |||||
public function getTypeIcon() { | public function getTypeIcon() { | ||||
if ($this->getPHIDType()) { | if ($this->getPHIDType()) { | ||||
return $this->getPHIDType()->getTypeIcon(); | return $this->getPHIDType()->getTypeIcon(); | ||||
} | } | ||||
return null; | return null; | ||||
} | } | ||||
public function setPolicyFiltered($policy_filered) { | public function setPolicyFiltered($policy_filered) { | ||||
▲ Show 20 Lines • Show All 268 Lines • Show Last 20 Lines |