ExecutableException example

return $plugin->setExecutableManager($this);
  }

  /** * {@inheritdoc} */
  public function execute(ExecutableInterface $condition) {
    if ($condition instanceof ConditionInterface) {
      $result = $condition->evaluate();
      return $condition->isNegated() ? !$result : $result;
    }
    throw new ExecutableException("This manager object can only execute condition plugins");
  }

}
Home | Imprint | This part of the site doesn't use cookies.