An interface defining the minimum requirements of building a plugin discovery component.
Expanded class hierarchy of DiscoveryInterface
All classes that implement DiscoveryInterface
interface DiscoveryInterface {
/**
* Gets a specific plugin definition.
*
* @param string $plugin_id
* A plugin id.
*
* @return array|null
* A plugin definition, or NULL if no definition was found for $plugin_id.
*/
public function getDefinition($plugin_id);
/**
* Gets the definition of all plugins for this type.
*
* @return array
* An array of plugin definitions (empty array if no definitions were
* found).
*/
public function getDefinitions();
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 10 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 10 |