Differential D16020 Diff 38572 src/applications/settings/panel/PhabricatorExternalAccountsSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorExternalAccountsSettingsPanel.php
| <?php | <?php | ||||
| final class PhabricatorExternalAccountsSettingsPanel | final class PhabricatorExternalAccountsSettingsPanel | ||||
| extends PhabricatorSettingsPanel { | extends PhabricatorSettingsPanel { | ||||
| public function getPanelKey() { | public function getPanelKey() { | ||||
| return 'external'; | return 'external'; | ||||
| } | } | ||||
| public function getPanelName() { | public function getPanelName() { | ||||
| return pht('External Accounts'); | return pht('External Accounts'); | ||||
| } | } | ||||
| public function getPanelGroup() { | public function getPanelGroupKey() { | ||||
| return pht('Authentication'); | return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; | ||||
| } | |||||
| public function isEnabled() { | |||||
| return true; | |||||
| } | } | ||||
| public function processRequest(AphrontRequest $request) { | public function processRequest(AphrontRequest $request) { | ||||
| $viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
| $providers = PhabricatorAuthProvider::getAllProviders(); | $providers = PhabricatorAuthProvider::getAllProviders(); | ||||
| $accounts = id(new PhabricatorExternalAccountQuery()) | $accounts = id(new PhabricatorExternalAccountQuery()) | ||||
| ▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines | |||||