You are here

public function RulesConditionalPredicateElement::integrityCheck in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.core.inc \RulesConditionalPredicateElement::integrityCheck()

Return value

RulesContainerPlugin

Overrides RulesConditionalElement::integrityCheck

File

includes/rules_conditional.core.inc, line 453
Conditional Rules framework implementation.

Class

RulesConditionalPredicateElement
Base conditional element that uses a predicate.

Code

public function integrityCheck() {
  if (!isset($this->predicate)) {
    throw new RulesIntegrityException(t('The conditional "%plugin" does not have a valid predicate.', array(
      '%plugin' => $this
        ->plugin(),
    )), $this);
  }
  parent::integrityCheck();
  return $this;
}