Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
According to https://api.drupal.org/api/drupal/core!includes!common.inc/function/drup... drupal_render
is deprecated. xmlsitemap still uses drupal_render
in its .module file.
Proposed resolution
change it to \Drupal::service('renderer')->render($elements, $is_recursive_call);
Remaining tasks
Create a patch.
Review.
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
drupal_render-deprecated.patch | 1.3 KB | tadityar | |
Comments
Comment #2
tadityar CreditAttribution: tadityar commented