You are here

public function SubmitButtonRules::__construct in Flexiform 8

Construct a new Submit Button rules plugin.

Overrides PluginBase::__construct

File

contrib/rules/src/Plugin/FormEnhancer/SubmitButtonRules.php, line 44

Class

SubmitButtonRules
A flexiform enhancer to trigger rules on submission.

Namespace

Drupal\flexiform_rules\Plugin\FormEnhancer

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ExpressionManagerInterface $expression_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->expressionManager = $expression_manager;
}