public function RuleComponentInterface::createInstance in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 3.x src/Entity/RuleComponentInterface.php \Drupal\rng\Entity\RuleComponentInterface::createInstance()
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/
Entity/ RuleComponentInterface.php, line 100
Class
- RuleComponentInterface
- Provides an interface for rule component entities.
Namespace
Drupal\rng\EntityCode
public function createInstance();