BusinessRulesReactsOnPlugin.php in Business Rules 2.x
File
src/Plugin/BusinessRulesReactsOnPlugin.php
View source
<?php
namespace Drupal\business_rules\Plugin;
use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Form\FormStateInterface;
abstract class BusinessRulesReactsOnPlugin extends PluginBase implements BusinessRulesReactsOnInterface {
protected $processor;
protected $util;
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');
}
public function processForm(array &$form, FormStateInterface $form_state) {
}
}