You are here

VariableInterface.php in Business Rules 8

Same filename and directory in other branches
  1. 2.x src/VariableInterface.php

File

src/VariableInterface.php
View source
<?php

namespace Drupal\business_rules;

use Drupal\business_rules\Events\BusinessRulesEvent;
use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface for defining Variable entities.
 */
interface VariableInterface extends ConfigEntityInterface, ItemInterface {

  /**
   * Evaluate the variable.
   *
   * @param \Drupal\business_rules\Events\BusinessRulesEvent $event
   *   The dispatched event.
   *
   * @return \Drupal\business_rules\VariableObject|\Drupal\business_rules\VariablesSet
   *   The evaluated variables.
   *
   * @throws \ReflectionException
   */
  public function evaluate(BusinessRulesEvent $event);

}

Interfaces

Namesort descending Description
VariableInterface Provides an interface for defining Variable entities.