Problem/Motivation

This can be moved to an object property. Then the closures can reference it either by assigning to a temp variable or binding the closures to $this before calling them (which you can do as of PHP 5.4 so that $this works inside a closure).

Of course, those closures maybe can just turn into methods on this class then. That's probably a bit more refactoring than we want to bother with right now.

Proposed resolution

Remaining tasks

User interface changes

API changes

Comments

berdir’s picture

Status: Active » Closed (duplicate)

This was refactored in #2382503: Not possible to render self-contained render array while a render stack is active to class properties and methods, as we found out there, it still has to be static due to container rebuild fun.