You are here

ActionInterface.php in Business Rules 2.x

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

File

src/ActionInterface.php
View source
<?php

namespace Drupal\business_rules;

use Drupal\business_rules\Events\BusinessRulesEvent;

/**
 * Provides an interface for defining Action entities.
 */
interface ActionInterface extends ItemInterface {

  /**
   * Execute the 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.
   *
   * @throws \ReflectionException
   */
  public function execute(BusinessRulesEvent $event);

}

Interfaces

Namesort descending Description
ActionInterface Provides an interface for defining Action entities.