diff options
Diffstat (limited to 'apps/profile/src/services/ProfileSections.ts')
-rw-r--r-- | apps/profile/src/services/ProfileSections.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/profile/src/services/ProfileSections.ts b/apps/profile/src/services/ProfileSections.ts new file mode 100644 index 00000000000..9c6ca08e33f --- /dev/null +++ b/apps/profile/src/services/ProfileSections.ts @@ -0,0 +1,25 @@ +/** + * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +export default class ProfileSections { + + _sections + + constructor() { + this._sections = [] + } + + /** + * @param {registerSectionCallback} section To be called to mount the section to the profile page + */ + registerSection(section) { + this._sections.push(section) + } + + getSections() { + return this._sections + } + +} |