Commit 7f69cb44 authored by alexpott's avatar alexpott

Issue #2332551 by kgoel, er.pushpinderrana, Crell: Remove drupal_render_page().

parent 829c436e
......@@ -2570,28 +2570,6 @@ function drupal_prepare_page($page) {
return $page;
}
/**
* Renders the page, including all theming.
*
* @param string|array $page
* A string or array representing the content of a page. The array consists of
* the following keys:
* - #type: Value is always 'page'. This pushes the theming through
* the page template (required).
* - #show_messages: Suppress drupal_get_message() items. Used by Batch
* API (optional).
*
* @return string
* Returns the rendered string.
*
* @see hook_page_alter()
* @see element_info()
*/
function drupal_render_page($page) {
$page = drupal_prepare_page($page);
return drupal_render($page);
}
/**
* Renders HTML given a structured array tree.
*
......@@ -2945,7 +2923,7 @@ function drupal_render(&$elements, $is_recursive_call = FALSE) {
// Let the theme functions in #theme_wrappers add markup around the rendered
// children.
// #states and #attached have to be processed before #theme_wrappers, because
// the #type 'page' render array from drupal_render_page() would render the
// the #type 'page' render array from drupal_prepare_page() would render the
// $page and wrap it into the html.html.twig template without the attached
// assets otherwise.
// If the internal #render_children property is set, do not call the
......
......@@ -1793,7 +1793,7 @@ function template_preprocess_html(&$variables) {
* inside "modules/system/page.html.twig". Look in there for the full list of
* variables.
*
* @see drupal_render_page()
* @see DefaultHtmlFragmentRenderer::render()
*/
function template_preprocess_page(&$variables) {
$language_interface = \Drupal::languageManager()->getCurrentLanguage();
......
......@@ -374,7 +374,7 @@ function hook_ajax_render_alter(array &$data) {
* Nested array of renderable elements that make up the page.
*
* @see hook_page_alter()
* @see drupal_render_page()
* @see DefaultHtmlFragmentRenderer::render()
*/
function hook_page_build(&$page) {
$path = drupal_get_path('module', 'foo');
......@@ -659,7 +659,7 @@ function hook_contextual_links_plugins_alter(array &$contextual_links) {
* Nested array of renderable elements that make up the page.
*
* @see hook_page_build()
* @see drupal_render_page()
* @see DefaultHtmlFragmentRenderer::render()
*/
function hook_page_alter(&$page) {
// Add help text to the user login block.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment