Page MenuHomePhorge

PhabricatorSearchDatasource.php
No OneTemporary

PhabricatorSearchDatasource.php

<?php
final class PhabricatorSearchDatasource
extends PhabricatorTypeaheadCompositeDatasource {
public function getBrowseTitle() {
return pht('Browse Results');
}
public function getPlaceholderText() {
return pht('Type an object name...');
}
public function getDatasourceApplicationClass() {
return PhabricatorSearchApplication::class;
}
public function getComponentDatasources() {
$sources = id(new PhabricatorDatasourceEngine())
->getAllQuickSearchDatasources();
// 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;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 19:55 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128199
Default Alt Text
PhabricatorSearchDatasource.php (744 B)

Event Timeline