interface RulesUiManagerInterface in Rules 8.3
Interface for the 'rules_ui' plugin manager.
RulesUI plugins allow the definition of multiple RulesUIs instances, possibly being included in some other UI.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\rules\Ui\RulesUiManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of RulesUiManagerInterface
All classes that implement RulesUiManagerInterface
2 files declare their use of RulesUiManagerInterface
- RulesUiRouteEnhancer.php in src/
Routing/ RulesUiRouteEnhancer.php - RulesUiRouteSubscriber.php in src/
Routing/ RulesUiRouteSubscriber.php
File
- src/
Ui/ RulesUiManagerInterface.php, line 13
Namespace
Drupal\rules\UiView source
interface RulesUiManagerInterface extends PluginManagerInterface {
/**
* Creates a pre-configured instance of a plugin.
*
* @param string $plugin_id
* The ID of the plugin being instantiated.
* @param array $configuration
* An array of configuration relevant to the plugin instance.
*
* @return \Drupal\rules\Ui\RulesUiHandlerInterface
* A fully configured plugin instance.
*
* @throws \Drupal\Component\Plugin\Exception\PluginException
* If the instance cannot be created, such as if the ID is invalid.
*/
public function createInstance($plugin_id, array $configuration = []);
/**
* {@inheritdoc}
*
* @return \Drupal\rules\Ui\RulesUiDefinition|null
* A plugin definition, or NULL if the plugin ID is invalid and
* $exception_on_invalid is FALSE.
*/
public function getDefinition($plugin_id, $exception_on_invalid = TRUE);
/**
* {@inheritdoc}
*
* @return \Drupal\rules\Ui\RulesUiDefinition[]
* An array of plugin definitions (empty array if no definitions were
* found). Keys are plugin IDs.
*/
public function getDefinitions();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |
RulesUiManagerInterface:: |
public | function |
Creates a pre-configured instance of a plugin. Overrides FactoryInterface:: |
|
RulesUiManagerInterface:: |
public | function |
Overrides DiscoveryInterface:: |
|
RulesUiManagerInterface:: |
public | function |
Overrides DiscoveryInterface:: |