You are here

interface ItemableInterface in Business Rules 2.x

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

Interface ItemableInterface.

Business Rules items which contains items.

@package Drupal\business_rules

Hierarchy

Expanded class hierarchy of ItemableInterface

All classes that implement ItemableInterface

File

src/ItemableInterface.php, line 12

Namespace

Drupal\business_rules
View source
interface ItemableInterface {

  /**
   * The Business rule's items.
   *
   * @return array
   *   Array of BusinessRulesItemObject.
   */
  public function getItems();

  /**
   * Return a list of Conditions|Actions compatible with the Rule.
   *
   * @param array $items
   *   Array of Conditions|Actions.
   *
   * @return array
   *   The available items considering the rule context.
   */
  public function filterContextAvailableItems(array $items);

}

Members

Namesort descending Modifiers Type Description Overrides
ItemableInterface::filterContextAvailableItems public function Return a list of Conditions|Actions compatible with the Rule.
ItemableInterface::getItems public function The Business rule's items.