You are here

interface BusinessRulesConditionPluginInterface in Business Rules 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/BusinessRulesConditionPluginInterface.php \Drupal\business_rules\Plugin\BusinessRulesConditionPluginInterface

Defines an interface for Business rules Condition plugins.

Hierarchy

Expanded class hierarchy of BusinessRulesConditionPluginInterface

All classes that implement BusinessRulesConditionPluginInterface

File

src/Plugin/BusinessRulesConditionPluginInterface.php, line 12

Namespace

Drupal\business_rules\Plugin
View source
interface BusinessRulesConditionPluginInterface extends BusinessRulesItemPluginInterface {

  /**
   * Process the condition.
   *
   * @param \Drupal\business_rules\ConditionInterface $condition
   *   The configured condition.
   * @param \Drupal\business_rules\Events\BusinessRulesEvent $event
   *   The event that has triggered the condition.
   *
   * @return bool
   *   Boolean value that indicates if the condition is true.
   */
  public function process(ConditionInterface $condition, BusinessRulesEvent $event);

  /**
   * Process the item the variables for it's values.
   *
   * @param mixed $content
   *   The item to be replaced by the variable value.
   * @param \Drupal\business_rules\VariablesSet $event_variables
   *   Array of Variables provided by the event.
   *
   * @return mixed
   *   The processed content, replacing the variables tokens for it's values.
   */
  public function processVariables($content, VariablesSet $event_variables);

}

Members

Namesort descending Modifiers Type Description Overrides
BusinessRulesConditionPluginInterface::process public function Process the condition. 1
BusinessRulesConditionPluginInterface::processVariables public function Process the item the variables for it's values. Overrides BusinessRulesItemPluginInterface::processVariables
BusinessRulesItemPluginInterface::buildForm public function Form constructor. 1
BusinessRulesItemPluginInterface::getDescription public function Provide a description of the item. 1
BusinessRulesItemPluginInterface::getEditUrl public function Get the redirect url for the item edit-form route. 1
BusinessRulesItemPluginInterface::getGroup public function Provide the group of the item. 1
BusinessRulesItemPluginInterface::getRedirectUrl public function Get the redirect url for the item collection route. 1
BusinessRulesItemPluginInterface::getSettingsForm public function Return the form array. 1
BusinessRulesItemPluginInterface::getVariables public function Return a variable set with all used variables on the item. 1
BusinessRulesItemPluginInterface::pregMatch public function Extract the variables from the plugin settings. 1
BusinessRulesItemPluginInterface::processSettings public function Process the item settings before it's saved. 1
BusinessRulesItemPluginInterface::processTokens public function Process the tokens on the settings property for the item. 1
BusinessRulesItemPluginInterface::validateForm public function Plugin form validator. 1
BusinessRulesItemPluginInterface::VARIABLE_REGEX constant
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2