drupal 8 service render code example Example: drupal 8 render service // Drupal render. \Drupal::service('renderer')->render($render_array);