Problem/Motivation

LogicException: Render context is empty, because render() was called outside of a renderRoot() or renderPlain() call. Use renderPlain()/renderRoot()

Happens for example with token.module requirements sensor.

Proposed resolution

Execute in a render context?

Possibly the bug is also in token module and we need to fix it there.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Berdir created an issue.