function RulesUiManagerInterface::createInstance
Creates a pre-configured instance of a plugin.
Parameters
string $plugin_id: The ID of the plugin being instantiated.
array $configuration: An array of configuration relevant to the plugin instance.
Return value
\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.
File
-
src/
Ui/ RulesUiManagerInterface.php, line 29
Class
- RulesUiManagerInterface
- Interface for the 'rules_ui' plugin manager.
Namespace
Drupal\rules\UiCode
public function createInstance($plugin_id, array $configuration = []);