Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/typeahead/AlmanacServiceTypeDatasource.php
<?php | <?php | ||||
final class AlmanacServiceTypeDatasource | final class AlmanacServiceTypeDatasource | ||||
extends PhabricatorTypeaheadDatasource { | extends PhabricatorTypeaheadDatasource { | ||||
public function getBrowseTitle() { | public function getBrowseTitle() { | ||||
return pht('Browse Service Types'); | return pht('Browse Service Types'); | ||||
} | } | ||||
public function getPlaceholderText() { | public function getPlaceholderText() { | ||||
return pht('Type a service type name...'); | return pht('Type a service type name...'); | ||||
} | } | ||||
public function getDatasourceApplicationClass() { | public function getDatasourceApplicationClass() { | ||||
return 'PhabricatorAlmanacApplication'; | return PhabricatorAlmanacApplication::class; | ||||
} | } | ||||
public function loadResults() { | public function loadResults() { | ||||
$results = $this->buildResults(); | $results = $this->buildResults(); | ||||
return $this->filterResultsAgainstTokens($results); | return $this->filterResultsAgainstTokens($results); | ||||
} | } | ||||
protected function renderSpecialTokens(array $values) { | protected function renderSpecialTokens(array $values) { | ||||
Show All 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0