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.
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.