Hierarchy

  • ExtensionData

Constructors

Properties

Methods

  • Checks whether a given extension has registered permissions.

    Parameters

    • extension: string

    Returns boolean

  • This function registers your settings with Flarum

    It takes either a settings object or a callback.

    Example

    .registerSetting({
    setting: 'flarum-flags.guidelines_url',
    type: 'text', // This will be inputted into the input tag for the setting (text/number/etc)
    label: app.translator.trans('flarum-flags.admin.settings.guidelines_url_label')
    }, 15) // priority is optional (ItemList)

    Parameters

    Returns ExtensionData

Generated using TypeDoc v0.23.24