Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/icon/PhabricatorProjectIcon.php
| Show All 38 Lines | public static function getLabel($key) { | ||||
| return $map[$key]; | return $map[$key]; | ||||
| } | } | ||||
| public static function getAPIName($key) { | public static function getAPIName($key) { | ||||
| return substr($key, 3); | return substr($key, 3); | ||||
| } | } | ||||
| public static function renderIconForChooser($icon) { | public static function renderIconForChooser($icon) { | ||||
| $project_icons = PhabricatorProjectIcon::getIconMap(); | $project_icons = self::getIconMap(); | ||||
| return phutil_tag( | return phutil_tag( | ||||
| 'span', | 'span', | ||||
| array(), | array(), | ||||
| array( | array( | ||||
| id(new PHUIIconView())->setIconFont($icon), | id(new PHUIIconView())->setIconFont($icon), | ||||
| ' ', | ' ', | ||||
| idx($project_icons, $icon, pht('Unknown Icon')), | idx($project_icons, $icon, pht('Unknown Icon')), | ||||
| )); | )); | ||||
| } | } | ||||
| } | } | ||||