ILIAS icon indicating copy to clipboard operation
ILIAS copied to clipboard

[FEATURE] UI: centralise `ComponentRenderer::render()`

Open thibsy opened this issue 1 year ago • 0 comments

Hi folks,

This is one part of the PR I created to introduce JavaScript hydration to the UI framework (#6948).

It centralises the ComponentRenderer::render() function inside our AbstractComponentRenderer by using a new abstract method called renderComponent() and gets rid of the AbstractComponentRenderer::checkComponent() calls. I also tried to streamline the instanceof checks a bit, and returned null in methods which threw a LogicException or returned an empty string if the component could not be handled.

Kind regards, @thibsy

thibsy avatar May 03 '24 09:05 thibsy