ContextAwarePluginDefinitionInterface
interface ContextAwarePluginDefinitionInterface implements PluginDefinitionInterface (View source)
Provides an interface for plugin definitions which use contexts.
Methods
Checks if the plugin defines a particular context.
Returns all context definitions for this plugin.
Returns a particular context definition for this plugin.
Adds a context to this plugin definition.
Removes a context definition from this plugin.
Details
string
id()
Gets the unique identifier of the plugin.
PluginDefinitionInterface
setClass(string $class)
Sets the class.
string
getClass()
Gets the class.
string
getProvider()
Gets the plugin provider.
The provider is the name of the module that provides the plugin, or "core', or "component".
bool
hasContextDefinition(string $name)
Checks if the plugin defines a particular context.
ContextDefinitionInterface[]
getContextDefinitions()
Returns all context definitions for this plugin.
ContextDefinitionInterface
getContextDefinition(string $name)
Returns a particular context definition for this plugin.
$this
addContextDefinition(string $name, ContextDefinitionInterface $definition)
Adds a context to this plugin definition.
$this
removeContextDefinition(string $name)
Removes a context definition from this plugin.