Description: 

The render() function in common.inc is deprecated. Use the render() method on the Renderer service instead.

Before:

$output = render($build);

After:

$output = \Drupal::service('renderer')->render($build);