commit 11b5b3bbf27244f4a544619b4ba6174c05c6d942 Author: Shane Auckland Date: Thu Apr 25 15:31:27 2013 +0100 1961870-42 diff --git a/core/includes/theme.inc b/core/includes/theme.inc index bd1c880..74fee9d 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2802,10 +2802,12 @@ function template_preprocess_html(&$variables) { } /** - * Preprocess variables for page.tpl.php + * Preprocess variables for the page template. * - * Most themes utilize their own copy of page.tpl.php. The default is located - * inside "modules/system/page.tpl.php". Look in there for the full list of + * Default template: page.html.twig. + * + * Most themes utilize their own copy of page.html.twig. The default is located + * inside "modules/system/page.html.twig". Look in there for the full list of * variables. * * Uses the arg() function to generate a series of page template suggestions @@ -2816,7 +2818,6 @@ function template_preprocess_html(&$variables) { * * @see drupal_render_page() * @see template_process_page() - * @see page.tpl.php */ function template_preprocess_page(&$variables) { $language_interface = language(LANGUAGE_TYPE_INTERFACE); @@ -2894,13 +2895,12 @@ function template_preprocess_page(&$variables) { } /** - * Process variables for page.tpl.php + * Process variables for page.html.twig. * * Perform final addition of variables before passing them into the template. * To customize these variables, simply set them in an earlier step. * * @see template_preprocess_page() - * @see page.tpl.php */ function template_process_page(&$variables) { if (!isset($variables['breadcrumb'])) { diff --git a/core/modules/system/templates/page.html.twig b/core/modules/system/templates/page.html.twig index 17b39e6..9ca76ca 100644 --- a/core/modules/system/templates/page.html.twig +++ b/core/modules/system/templates/page.html.twig @@ -9,24 +9,23 @@ * Available variables: * * General utility variables: - * - base_path: The base URL path of the Drupal installation. Will usually - * be / unless you have installed Drupal in a sub-directory. - * - directory: The directory the template is located in, e.g. modules/system - * or themes/bartik. + * - base_path: The base URL path of the Drupal installation. Will usually be + * '/' unless you have installed Drupal in a sub-directory. + * - directory: The directory the template is located in, e.g. modules/system or + * themes/bartik. * - is_front: A flag indicating if the current page is the front page. * - logged_in: A flag indicating if the user is registered and signed in. * - is_admin: A flag indicating if the user has permission to access * administration pages. * * Site identity: - * - front_page: The URL of the front page. Use this instead of base_path - * when linking to the front page. This includes the language domain or - * prefix. + * - front_page: The URL of the front page. Use this instead of base_path when + * linking to the front page. This includes the language domain or prefix. * - logo: The url of the logo image, as defined in theme settings. - * - site_name: The name of the site, empty when display has been disabled - * in theme settings. - * - site_slogan: The slogan of the site, empty when display has been disabled - * in theme settings. + * - site_name: The name of the site, empty when displing the site name has been + * disabled in theme settings. + * - site_slogan: The slogan of the site, empty when displaying the slogan has + * been disabled in theme settings. * * Navigation: * - main_menu: The Main menu links for the site, if they have been configured. @@ -62,6 +61,8 @@ * * @see template_preprocess() * @see template_preprocess_page() + * @see template_process() + * @see template_process_page() * @see html.html.twig * * @ingroup themeable