You are here

BusinessRulesActionPluginInterface.php in Business Rules 2.x

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

File

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

namespace Drupal\business_rules\Plugin;

use Drupal\business_rules\ActionInterface;
use Drupal\business_rules\Events\BusinessRulesEvent;

/**
 * Defines an interface for Business rules Action plugins.
 */
interface BusinessRulesActionPluginInterface extends BusinessRulesItemPluginInterface {

  /**
   * Execute the action.
   *
   * @param \Drupal\business_rules\ActionInterface $action
   *   The configured action.
   * @param \Drupal\business_rules\Events\BusinessRulesEvent $event
   *   The event that has triggered the action.
   *
   * @return array
   *   The render array to be showed on debug block.
   */
  public function execute(ActionInterface $action, BusinessRulesEvent $event);

}

Interfaces

Namesort descending Description
BusinessRulesActionPluginInterface Defines an interface for Business rules Action plugins.