abstract class BusinessRulesReactsOnPlugin in Business Rules 8
Same name and namespace in other branches
- 2.x src/Plugin/BusinessRulesReactsOnPlugin.php \Drupal\business_rules\Plugin\BusinessRulesReactsOnPlugin
Base class for Business rules reacts on plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\business_rules\Plugin\BusinessRulesReactsOnPlugin implements BusinessRulesReactsOnInterface
Expanded class hierarchy of BusinessRulesReactsOnPlugin
14 files declare their use of BusinessRulesReactsOnPlugin
- CronRuns.php in src/
Plugin/ BusinessRulesReactsOn/ CronRuns.php - EntityDelete.php in src/
Plugin/ BusinessRulesReactsOn/ EntityDelete.php - EntityInsert.php in src/
Plugin/ BusinessRulesReactsOn/ EntityInsert.php - EntityIsViewed.php in src/
Plugin/ BusinessRulesReactsOn/ EntityIsViewed.php - EntityLoaded.php in src/
Plugin/ BusinessRulesReactsOn/ EntityLoaded.php
File
- src/
Plugin/ BusinessRulesReactsOnPlugin.php, line 11
Namespace
Drupal\business_rules\PluginView source
abstract class BusinessRulesReactsOnPlugin extends PluginBase implements BusinessRulesReactsOnInterface {
/**
* The business rules processor.
*
* @var \Drupal\business_rules\Util\BusinessRulesProcessor
*/
protected $processor;
/**
* The business rules util.
*
* @var \Drupal\business_rules\Util\BusinessRulesUtil
*/
protected $util;
/**
* {@inheritdoc}
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->processor = \Drupal::service('business_rules.processor');
$this->util = \Drupal::service('business_rules.util');
}
/**
* {@inheritdoc}
*/
public function processForm(array &$form, FormStateInterface $form_state) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BusinessRulesReactsOnPlugin:: |
protected | property | The business rules processor. | |
BusinessRulesReactsOnPlugin:: |
protected | property | The business rules util. | |
BusinessRulesReactsOnPlugin:: |
public | function |
Process the BusinessRule form for reactsOn plugins. Overrides BusinessRulesReactsOnInterface:: |
3 |
BusinessRulesReactsOnPlugin:: |
public | function |
Constructs a \Drupal\Component\Plugin\PluginBase object. Overrides PluginBase:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. |