- {{ action_links }}
diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 25e9b9a..6679876 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -1761,8 +1761,8 @@ function watchdog($type, $message, array $variables = NULL, $severity = WATCHDOG /** * Sets a message to display to the user. * - * Messages are stored in a session variable and displayed in page.tpl.php via - * the $messages theme variable. + * Messages are stored in a session variable and displayed in the page template + * via the $messages theme variable. * * Example usage: * @code diff --git a/core/includes/common.inc b/core/includes/common.inc index e2a28c3..0bd0561 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -5068,7 +5068,7 @@ function drupal_pre_render_dropbutton($element) { * 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 - * page.tpl.php (required). + * the page template (required). * - #show_messages: Suppress drupal_get_message() items. Used by Batch * API (optional). * diff --git a/core/includes/theme.inc b/core/includes/theme.inc index bcf050e..f0df9d4 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2907,7 +2907,10 @@ function template_process_page(&$variables) { // re-use the cache of an already rendered menu containing the active link // for the current page. // @see menu_tree_page_data() - $variables['breadcrumb'] = theme('breadcrumb', array('breadcrumb' => drupal_get_breadcrumb())); + $variables['breadcrumb'] = array( + '#theme' => 'breadcrumb', + '#breadcrumb' => drupal_get_breadcrumb() + ); } if (!isset($variables['title'])) { $variables['title'] = drupal_get_title(); @@ -2916,7 +2919,7 @@ function template_process_page(&$variables) { // Generate messages last in order to capture as many as possible for the // current page. if (!isset($variables['messages'])) { - $variables['messages'] = $variables['show_messages'] ? theme('status_messages') : ''; + $variables['messages'] = $variables['show_messages'] ? array('#theme' => 'status_messages') : ''; } } diff --git a/core/modules/system/templates/page.html.twig b/core/modules/system/templates/page.html.twig index 7adea50..ff7c010 100644 --- a/core/modules/system/templates/page.html.twig +++ b/core/modules/system/templates/page.html.twig @@ -1,7 +1,7 @@ {# /** * @file - * Default theme implementation to display a single Drupal page. + * Default theme implementation to display a single page. * * The doctype, html, head and body tags are not in this template. Instead they * can be found in the html.html.twig template in this directory. @@ -10,9 +10,7 @@ * * 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. + * "/" unless you have installed Drupal in a sub-directory. * - 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 @@ -22,10 +20,10 @@ * - 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 displaying 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. + * - site_name: The name of the site. This is empty when displaying the site + * name has been disabled in the theme settings. + * - site_slogan: The slogan of the site. This is empty when displaying the site + * slogan has been disabled in theme settings. * * Navigation: * - main_menu: The Main menu links for the site, if they have been configured. @@ -36,13 +34,13 @@ * Page content (in order of occurrence in the default page.html.twig): * - title_prefix: Additional output populated by modules, intended to be * displayed in front of the main title tag that appears in the template. - * - title: The page title, for use in the actual HTML content. + * - title: The page title, for use in the actual content. * - title_suffix: Additional output populated by modules, intended to be * displayed after the main title tag that appears in the template. * - messages: Status and error messages. Should be displayed prominently. * - tabs: Tabs linking to any sub-pages beneath the current page (e.g., the * view and edit tabs when displaying a node). - * - action_links: Actions local to the page, such as 'Add menu' on the menu + * - action_links: Actions local to the page, such as "Add menu" on the menu * administration interface. * - feed_icons: All feed icons for the current page. * - node: Fully loaded node, if there is an automatically-loaded node @@ -51,12 +49,12 @@ * comment/reply/12345). * * Regions: - * - page.help: Dynamic help text, mostly for admin pages. + * - page.header: Items for the header region. * - page.highlighted: Items for the highlighted content region. + * - page.help: Dynamic help text, mostly for admin pages. * - page.content: The main content of the current page. * - page.sidebar_first: Items for the first sidebar. * - page.sidebar_second: Items for the second sidebar. - * - page.header: Items for the header region. * - page.footer: Items for the footer region. * * @see template_preprocess() @@ -69,6 +67,7 @@ */ #}
{{ site_slogan }}
{% endif %} -