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