You are here

public function RuleComponentInterface::createInstance in RNG - Events and Registrations 8

Gets the configuration for the component.

This should only be used if the caller does not have access to dependency injection.

@todo: change @todo: common class.

Return value

when condition and action plugins have a better

\Drupal\Core\Condition\ConditionPluginBase|\Drupal\Core\Action\ConfigurableActionBase|NULL A condition or action plugin. Or NULL if the plugin does not exist.

Throws

\Exception If the plugin type is invalid.

1 method overrides RuleComponentInterface::createInstance()
RuleComponent::createInstance in src/Entity/RuleComponent.php
Gets the configuration for the component.

File

src/RuleComponentInterface.php, line 100

Class

RuleComponentInterface
Provides an interface for rule component entities.

Namespace

Drupal\rng

Code

public function createInstance();