CategorizingPluginManagerInterface
interface CategorizingPluginManagerInterface implements PluginManagerInterface (View source)
Defines an interface for plugin managers that categorize plugin definitions.
Methods
Gets a specific plugin definition.
Indicates if a specific plugin definition exists.
Creates a pre-configured instance of a plugin.
Gets a preconfigured instance of a plugin.
Gets the names of all categories.
Gets sorted plugin definitions.
Gets sorted plugin definitions grouped by category.
Details
mixed
getDefinition(string $plugin_id, bool $exception_on_invalid = TRUE)
Gets a specific plugin definition.
array
getDefinitions()
Gets the definition of all plugins for this type.
bool
hasDefinition(string $plugin_id)
Indicates if a specific plugin definition exists.
object
createInstance(string $plugin_id, array $configuration = [])
Creates a pre-configured instance of a plugin.
object|false
getInstance(array $options)
Gets a preconfigured instance of a plugin.
string[]
getCategories()
Gets the names of all categories.
array[]
getSortedDefinitions(array $definitions = NULL)
Gets sorted plugin definitions.
array[]
getGroupedDefinitions(array $definitions = NULL)
Gets sorted plugin definitions grouped by category.
In addition to grouping, both categories and its entries are sorted, whereas plugin definitions are sorted by label.