drupal_render() was marked as deprecated, though its still called in quite some places.
- Avoid rendering manually by letting the template who is printing the variable render it.
- Inject the renderer service into service, which uses drupal_render()
- Use \Drupal::service('renderer')->render() for old prodecural code.
- Find all the actionable fixes: Search for drupal_render(
- Create a Patch
User interface changes