'link', 'icon' => 'fa-link', 'name' => pht('Link'), ), array( 'key' => 'maniphest', 'icon' => 'fa-anchor', 'name' => pht('Maniphest'), ), array( 'key' => 'feed', 'icon' => 'fa-newspaper-o', 'name' => pht('Feed'), ), array( 'key' => 'phriction', 'icon' => 'fa-book', 'name' => pht('Phriction'), ), array( 'key' => 'conpherence', 'icon' => 'fa-comments', 'name' => pht('Conpherence'), ), array( 'key' => 'create', 'icon' => 'fa-plus', 'name' => pht('Create'), ), ); $icons = array(); foreach ($list as $spec) { $icons[] = id(new PhabricatorIconSetIcon()) ->setKey($spec['key']) ->setIcon($spec['icon']) ->setLabel($spec['name']); } return $icons; } }