Class UmbExtensionRegistry<IncomingManifestTypes, IncomingConditionConfigTypes, ManifestTypes>

Type Parameters

Constructors

Properties

extensions: Observable<ManifestTypes[]> = ...
MANIFEST_TYPES: ManifestTypes = ...

Methods

  • Get an observable of extensions by type and a given filter method. This will return the all extensions that matches the type and which filter method returns true. The filter method will be called for each extension manifest of the given type, and the first argument to it is the extension manifest.

    Type Parameters

    Parameters

    • type: Key

      The type of the extension to get.

    • filter: (ext: T) => boolean

      The filter method to use to filter the extensions.

    Returns Observable<T[]>

    • An observable of the extensions that matches the type and filter method.
  • Exclude an extension from being available. Notice if you are looking to replace, then you can achieve such via the overwrites property in the manifest.

    Parameters

    • alias: string

      The alias of the extension to exclude.

    Returns void

  • Get an extensions by type and a given filter method. This will return the all extensions that matches the type and which filter method returns true. The filter method will be called for each extension manifest of the given type, and the first argument to it is the extension manifest.

    Type Parameters

    Parameters

    • type: Key

      The type of the extension to get.

    • filter: (ext: T) => boolean

      The filter method to use to filter the extensions.

    Returns T[]

    • An observable of the extensions that matches the type and filter method.
  • Check if an extension with the given alias is registered.

    Parameters

    • alias: string

      The alias of the extension to check.

    Returns boolean

    • true if an extension with the given alias is registered.

    UmbExtensionRegistry

  • Unregister an extension with the given alias. Notice it is more secure to exclude it, only unregister extensions that you provided.

    Parameters

    • alias: string

      The alias of the extension to unregister.

    Returns void

    UmbExtensionRegistry

  • Unregister many extensions with the given aliases. Notice it is more secure to exclude it, only unregister extensions that you provided.

    Parameters

    • aliases: string[]

      The aliases of the extensions to unregister.

    Returns void

    UmbExtensionRegistry

MMNEPVFCICPMFPCPTTAAATR