pht('All Spaces'), ); return $names; } public function buildSavedQueryFromBuiltin($query_key) { $query = $this->newSavedQuery(); $query->setQueryKey($query_key); switch ($query_key) { case 'all': return $query; } return parent::buildSavedQueryFromBuiltin($query_key); } protected function renderResultList( array $spaces, PhabricatorSavedQuery $query, array $handles) { assert_instances_of($spaces, 'PhabricatorSpacesNamespace'); $viewer = $this->requireViewer(); $list = new PHUIObjectItemListView(); $list->setUser($viewer); foreach ($spaces as $space) { $item = id(new PHUIObjectItemView()) ->setObjectName($space->getMonogram()) ->setHeader($space->getNamespaceName()) ->setHref('/'.$space->getMonogram()); if ($space->getIsDefaultNamespace()) { $item->addIcon('fa-certificate', pht('Default Space')); } $list->addItem($item); } return $list; } }