Skip to main content
1 of 2
Clive
  • 168k
  • 19
  • 303
  • 337

It was replaced with the renderer service:

$rendered = \Drupal::service('renderer')->render($renderArray);

The change record is slightly out of date; the method is render rather than renderElement these days.

Clive
  • 168k
  • 19
  • 303
  • 337