Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/typeahead/PhabricatorSearchDatasource.php
Show All 10 Lines | public function getPlaceholderText() { | ||||
return pht('Type an object name...'); | return pht('Type an object name...'); | ||||
} | } | ||||
public function getDatasourceApplicationClass() { | public function getDatasourceApplicationClass() { | ||||
return 'PhabricatorSearchApplication'; | return 'PhabricatorSearchApplication'; | ||||
} | } | ||||
public function getComponentDatasources() { | public function getComponentDatasources() { | ||||
return array( | $sources = array( | ||||
id(new PhabricatorPeopleDatasource())->setEnrichResults(true), | new PhabricatorPeopleDatasource(), | ||||
new PhabricatorProjectDatasource(), | new PhabricatorProjectDatasource(), | ||||
new PhabricatorApplicationDatasource(), | new PhabricatorApplicationDatasource(), | ||||
new PhabricatorTypeaheadMonogramDatasource(), | new PhabricatorTypeaheadMonogramDatasource(), | ||||
new DiffusionRepositoryDatasource(), | new DiffusionRepositoryDatasource(), | ||||
new DiffusionSymbolDatasource(), | new DiffusionSymbolDatasource(), | ||||
); | ); | ||||
// These results are always rendered in the full browse display mode, so | |||||
// set the browse flag on all component sources. | |||||
foreach ($sources as $source) { | |||||
$source->setIsBrowse(true); | |||||
} | |||||
return $sources; | |||||
} | } | ||||
} | } |