You are here

BusinessRulesVariablePlugin.php in Business Rules 2.x

Same filename and directory in other branches
  1. 8 src/Plugin/BusinessRulesVariablePlugin.php

File

src/Plugin/BusinessRulesVariablePlugin.php
View source
<?php

namespace Drupal\business_rules\Plugin;

use Drupal\business_rules\Entity\Variable;
use Drupal\business_rules\Events\BusinessRulesEvent;

/**
 * Base class for Business rules variable plugins.
 */
abstract class BusinessRulesVariablePlugin extends BusinessRulesItemPluginBase implements BusinessRulesVariablePluginInterface {

  /**
   * {@inheritdoc}
   */
  public abstract function evaluate(Variable $variable, BusinessRulesEvent $event);

  /**
   * {@inheritdoc}
   */
  public function changeDetails(Variable $variable, array &$row) {
  }

}

Classes

Namesort descending Description
BusinessRulesVariablePlugin Base class for Business rules variable plugins.