Differential D16048 Diff 38616 src/applications/settings/panel/PhabricatorHomePreferencesSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorHomePreferencesSettingsPanel.php
| Show All 9 Lines | final class PhabricatorHomePreferencesSettingsPanel | ||||
| public function getPanelName() { | public function getPanelName() { | ||||
| return pht('Home Page'); | return pht('Home Page'); | ||||
| } | } | ||||
| public function getPanelGroupKey() { | public function getPanelGroupKey() { | ||||
| return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY; | return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY; | ||||
| } | } | ||||
| public function isTemplatePanel() { | |||||
| return true; | |||||
| } | |||||
| public function processRequest(AphrontRequest $request) { | public function processRequest(AphrontRequest $request) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $preferences = $this->loadTargetPreferences(); | $preferences = $this->getPreferences(); | ||||
| $pinned_key = PhabricatorPinnedApplicationsSetting::SETTINGKEY; | $pinned_key = PhabricatorPinnedApplicationsSetting::SETTINGKEY; | ||||
| $pinned = $preferences->getSettingValue($pinned_key); | $pinned = $preferences->getSettingValue($pinned_key); | ||||
| $apps = id(new PhabricatorApplicationQuery()) | $apps = id(new PhabricatorApplicationQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->withInstalled(true) | ->withInstalled(true) | ||||
| ->withUnlisted(false) | ->withUnlisted(false) | ||||
| ▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines | |||||