Plugins

Information

These methods are accessible through profile.plugins() which exposes a PluginRepository instance.

Get a list of all plugins

1profile.plugins().all();

Get the first listed plugin

1profile.plugins().first();

Get the last listed plugin

1profile.plugins().last();

Get all data keys

1profile.plugins().keys();

Get all data values

1profile.plugins().values();

Register a new plugin

1profile.plugins().push(stubPlugin);

Restore previously created data

1profile.plugins().fill({ ["@hello/world"]: stubPlugin });

Find the plugin for a given Id

1profile.plugins().findById("@hello/world");

Forget a plugin using its Id

1profile.plugins().forget("@hello/world");

Forget all plugins (Use with caution!)

1profile.plugins().flush();

Get the count of stored plugins

1profile.plugins().count();

Registry

Information

These methods are accessible through profile.plugins().registry() which exposes a PluginRegistry instance.

Get a list of registered plugins

1profile.plugins().registry().all();

Get the size of a specific registry plugin

1profile.plugins().registry().size(registryPlugin);

Get the download count of a specific registry plugin

1profile.plugins().registry().downloads(registryPlugin);
Last updated 1 year ago
Edit Page
Share: