Task #8824

Create an abstract base class for Condition ViewHelpers to remove Code Duplication

Added by Sebastian Kurfuerst almost 12 years ago. Updated over 11 years ago.

Must have
Target version:
Start date:
Due date:
% Done:


Estimated time:
Has patch:


In FLOW3, we already have quite some condition ViewHelpers (f:if, f:security.if*). It turns out they all use a private API inside the framework, as they directly implement the ChildNodeAccessInterface, which is no public API.

Proposed solution
Create a new base class \F3\Fluid\Core\ViewHelper\ConditionViewHelper which should be used as a basis of condition-based ViewHelpers.

Breaking change

This is a breaking change for people who copied the "if"-ViewHelper and did their own condition evaluation, as the internal workings of the "if"-ViewHelper changed.

How to upgrade

Have a look at the new IfViewHelper, and see that it is now far easier to get up and running.


Updated by Sebastian Kurfuerst almost 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 90 to 100

committed in r4836.

Also available in: Atom PDF