diff --git a/core/includes/ajax.inc b/core/includes/ajax.inc
index 8e024a8..dea5c5e 100644
--- a/core/includes/ajax.inc
+++ b/core/includes/ajax.inc
@@ -230,7 +230,7 @@
* functions.
*/
function ajax_render($commands = array()) {
- // Ajax responses aren't rendered with html.tpl.php, so we have to call
+ // Ajax responses aren't rendered with html.html.twig, so we have to call
// drupal_get_css() and drupal_get_js() here, in order to have new files added
// during this request to be loaded by the page. We only want to send back
// files that the page hasn't already loaded, so we implement simple diffing
diff --git a/core/includes/common.inc b/core/includes/common.inc
index c513411..d082e17 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -2922,7 +2922,7 @@ function drupal_get_library($module, $name = NULL) {
* relationships.
*
* Note that this function should be called from the theme layer, such as in a
- * .tpl.php file, theme_ function, or in a template_preprocess function, not in
+ * .html.twig file, theme_ function, or in a template_preprocess function, not in
* a form declaration. Though the same JavaScript could be added to the page
* using drupal_add_js() directly, this function helps keep template files
* clean and readable. It also prevents tabledrag.js from being added twice
@@ -2957,7 +2957,6 @@ function drupal_get_library($module, $name = NULL) {
* column should not be hidden.
* @param $limit
* (optional) Limit the maximum amount of parenting in this table.
- * @see block-admin-display-form.tpl.php
* @see theme_menu_overview_form()
*/
function drupal_add_tabledrag($table_id, $action, $relationship, $group, $subgroup = NULL, $source = NULL, $hidden = TRUE, $limit = 0) {
@@ -3852,7 +3851,7 @@ function drupal_render(&$elements) {
// children.
// #states and #attached have to be processed before #theme_wrappers, because
// the #type 'page' render array from drupal_render_page() would render the
- // $page and wrap it into the html.tpl.php template without the attached
+ // $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
// #theme_wrappers function(s) to prevent infinite recursion.
diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index 84d4752..8888c66 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -808,7 +808,7 @@ function drupal_find_base_themes($themes, $key, $used_keys = array()) {
* (see hook_theme() for details). Default templates are implemented with the
* Twig rendering engine and are named the same as the theme hook, with
* underscores changed to hyphens, so for the 'taxonomy_term' theme hook, the
- * default template is 'taxonomy-term.tpl.php'.
+ * default template is 'taxonomy-term.html.twig'.
*
* @subsection sub_overriding_theme_hooks Overriding Theme Hooks
* Themes may also register new theme hooks within a hook_theme()
@@ -2596,7 +2596,7 @@ function template_preprocess_html(&$variables) {
$variables['head_title_array'] = $head_title;
$variables['head_title'] = implode(' | ', $head_title);
- // Display the html.tpl.php's default mobile metatags for responsive design.
+ // Display the html.html.twig's default mobile metatags for responsive design.
$elements = array(
'MobileOptimized' => array(
'#tag' => 'meta',
@@ -2994,13 +2994,13 @@ function template_preprocess_install_page(&$variables) {
}
/**
- * Preprocess variables for region.tpl.php
+ * Preprocess variables for region.html.twig
*
* Prepares the values passed to the theme_region function to be passed into a
* pluggable template engine. Uses the region name to generate a template file
- * suggestions. If none are found, the default region.tpl.php is used.
+ * suggestions. If none are found, the default region.html.twig is used.
*
- * @see region.tpl.php
+ * @see region.html.twig
*/
function template_preprocess_region(&$variables) {
// Create the $content variable that templates expect.
diff --git a/core/lib/Drupal/Core/Ajax/AjaxResponse.php b/core/lib/Drupal/Core/Ajax/AjaxResponse.php
index 2a72267..3d66a17 100644
--- a/core/lib/Drupal/Core/Ajax/AjaxResponse.php
+++ b/core/lib/Drupal/Core/Ajax/AjaxResponse.php
@@ -69,7 +69,7 @@ public function prepare(Request $request) {
* An array of commands ready to be returned as JSON.
*/
protected function ajaxRender(Request $request) {
- // Ajax responses aren't rendered with html.tpl.php, so we have to call
+ // Ajax responses aren't rendered with html.html.twig, so we have to call
// drupal_get_css() and drupal_get_js() here, in order to have new files
// added during this request to be loaded by the page. We only want to send
// back files that the page hasn't already loaded, so we implement simple
diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module
index a7fbb5d..fcbc298 100644
--- a/core/modules/edit/edit.module
+++ b/core/modules/edit/edit.module
@@ -159,7 +159,7 @@ function edit_field_formatter_info_alter(&$info) {
}
/**
- * Implements hook_preprocess_HOOK() for field.tpl.php.
+ * Implements hook_preprocess_HOOK() for field.html.twig
*/
function edit_preprocess_field(&$variables) {
$element = $variables['element'];
diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php
index 2166391..c891ec0 100644
--- a/core/modules/node/node.api.php
+++ b/core/modules/node/node.api.php
@@ -634,7 +634,7 @@ function hook_node_prepare_form(\Drupal\node\NodeInterface $node, $form_display,
* theming.
*
* @see template_preprocess_search_result()
- * @see search-result.tpl.php
+ * @see search-result.html.twig
*
* @ingroup node_api_hooks
*/
diff --git a/core/modules/overlay/overlay.module b/core/modules/overlay/overlay.module
index 05c6fb8..5c3f5bb 100644
--- a/core/modules/overlay/overlay.module
+++ b/core/modules/overlay/overlay.module
@@ -338,7 +338,7 @@ function overlay_system_info_alter(&$info, $file, $type) {
}
/**
- * Implements hook_preprocess_HOOK() for html.tpl.php.
+ * Implements hook_preprocess_HOOK() for html.html.twig
*
* If the current page request is inside the overlay, add appropriate classes
* to the
element, and simplify the page title.
@@ -363,12 +363,12 @@ function overlay_preprocess_maintenance_page(&$variables) {
}
/**
- * Implements template_preprocess_HOOK() for overlay.tpl.php
+ * Implements template_preprocess_HOOK() for overlay.html.twig
*
* If the current page request is inside the overlay, add appropriate classes
* to the element, and simplify the page title.
*
- * @see overlay.tpl.php
+ * @see overlay.html.twig
*/
function template_preprocess_overlay(&$variables) {
$variables['tabs'] = menu_primary_local_tasks();
@@ -386,7 +386,7 @@ function template_preprocess_overlay(&$variables) {
}
/**
- * Implements hook_preprocess_HOOK() for page.tpl.php.
+ * Implements hook_preprocess_HOOK() for page.html.twig.
*
* If the current page request is inside the overlay, hide the tabs.
*
diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module
index 32ab878..aa55ee1 100644
--- a/core/modules/rdf/rdf.module
+++ b/core/modules/rdf/rdf.module
@@ -226,7 +226,7 @@ function rdf_theme() {
}
/**
- * Implements hook_preprocess_HOOK() for html.tpl.php.
+ * Implements hook_preprocess_HOOK() for html.html.twig.
*/
function rdf_preprocess_html(&$variables) {
// Adds RDF namespace prefix bindings in the form of an RDFa 1.1 prefix
@@ -329,7 +329,7 @@ function rdf_preprocess_node(&$variables) {
}
/**
- * Implements hook_preprocess_HOOK() for field.tpl.php.
+ * Implements hook_preprocess_HOOK() for field.html.twig.
*/
function rdf_preprocess_field(&$variables) {
$element = $variables['element'];
@@ -366,7 +366,7 @@ function rdf_preprocess_field(&$variables) {
}
/**
- * Implements hook_preprocess_HOOK() for user.tpl.php.
+ * Implements hook_preprocess_HOOK() for user.html.twig.
*/
function rdf_preprocess_user(&$variables) {
$account = $variables['elements']['#user'];
@@ -549,7 +549,7 @@ function rdf_preprocess_comment(&$variables) {
}
/**
- * Implements hook_preprocess_HOOK() for taxonomy-term.tpl.php.
+ * Implements hook_preprocess_HOOK() for taxonomy-term.html.twig.
*/
function rdf_preprocess_taxonomy_term(&$variables) {
$term = $variables['term'];
diff --git a/core/modules/search/search.api.php b/core/modules/search/search.api.php
index 03b45aa..a75b54b 100644
--- a/core/modules/search/search.api.php
+++ b/core/modules/search/search.api.php
@@ -255,8 +255,8 @@ function hook_search_execute($keys = NULL, $conditions = NULL) {
* A renderable array, which will render the formatted search results with a
* pager included.
*
- * @see search-result.tpl.php
- * @see search-results.tpl.php
+ * @see search-result.html.twig
+ * @see search-results.html.twig
*/
function hook_search_page($results) {
$output['prefix']['#markup'] = '';
diff --git a/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module
index c22c97f..a46f34a 100644
--- a/core/modules/shortcut/shortcut.module
+++ b/core/modules/shortcut/shortcut.module
@@ -448,7 +448,7 @@ function shortcut_preprocess_block(&$variables) {
}
/**
- * Implements hook_preprocess_HOOK() for page.tpl.php.
+ * Implements hook_preprocess_HOOK() for page.html.twig.
*/
function shortcut_preprocess_page(&$variables) {
// Only display the shortcut link if the user has the ability to edit
diff --git a/core/modules/system/lib/Drupal/system/Tests/FileTransfer/FileTransferTest.php b/core/modules/system/lib/Drupal/system/Tests/FileTransfer/FileTransferTest.php
index 080e8fd..ca1c49d 100644
--- a/core/modules/system/lib/Drupal/system/Tests/FileTransfer/FileTransferTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/FileTransfer/FileTransferTest.php
@@ -37,7 +37,7 @@ function _getFakeModuleFiles() {
'fake.module',
'fake.info.yml',
'theme' => array(
- 'fake.tpl.php'
+ 'fake.html.twig'
),
'inc' => array(
'fake.inc'
diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/HtmlTplPhpAttributesTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/HtmlTplPhpAttributesTest.php
index d06b165..7a2149d 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Theme/HtmlTplPhpAttributesTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Theme/HtmlTplPhpAttributesTest.php
@@ -10,7 +10,7 @@
use Drupal\simpletest\WebTestBase;
/**
- * Functional test for attributes of html.tpl.php.
+ * Functional test for attributes of html.html.twig.
*/
class HtmlTplPhpAttributesTest extends WebTestBase {
@@ -23,20 +23,20 @@ class HtmlTplPhpAttributesTest extends WebTestBase {
public static function getInfo() {
return array(
- 'name' => 'html.tpl.php html and body attributes',
- 'description' => 'Tests attributes inserted in the html and body elements of html.tpl.php.',
+ 'name' => 'html.html.twig html and body attributes',
+ 'description' => 'Tests attributes inserted in the html and body elements of html.html.twig.',
'group' => 'Theme',
);
}
/**
- * Tests that modules and themes can alter variables in html.tpl.php.
+ * Tests that modules and themes can alter variables in html.html.twig.
*/
function testThemeHtmlTplPhpAttributes() {
$this->drupalGet('');
$attributes = $this->xpath('/html[@theme_test_html_attribute="theme test html attribute value"]');
- $this->assertTrue(count($attributes) == 1, 'Attribute set in the html element via hook_preprocess_HOOK() for html.tpl.php found.');
+ $this->assertTrue(count($attributes) == 1, 'Attribute set in the html element via hook_preprocess_HOOK() for html.html.twig found.');
$attributes = $this->xpath('/html/body[@theme_test_body_attribute="theme test body attribute value"]');
- $this->assertTrue(count($attributes) == 1, 'Attribute set in the body element via hook_preprocess_HOOK() for html.tpl.php found.');
+ $this->assertTrue(count($attributes) == 1, 'Attribute set in the body element via hook_preprocess_HOOK() for html.html.twig found.');
}
}
diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php
index 97e730c..5b12287 100644
--- a/core/modules/system/system.api.php
+++ b/core/modules/system/system.api.php
@@ -1553,7 +1553,7 @@ function hook_permission() {
* path, include it here. This path should be relative to the Drupal root
* directory.
* - template: If specified, this theme implementation is a template, and
- * this is the template file without an extension. Do not put .tpl.php on
+ * this is the template file without an extension. Do not put .html.twig on
* this file; that extension will be added automatically by the default
* rendering engine (which is Twig). If 'path' above is specified, the
* template should also be in this path.
@@ -1583,7 +1583,7 @@ function hook_permission() {
* - override preprocess functions: Set to TRUE when a theme does NOT want
* the standard preprocess functions to run. This can be used to give a
* theme FULL control over how variables are set. For example, if a theme
- * wants total control over how certain variables in the page.tpl.php are
+ * wants total control over how certain variables in the page.html.twig are
* set, this can be set to true. Please keep in mind that when this is used
* by a theme, that theme becomes responsible for making sure necessary
* variables are set.
diff --git a/core/modules/system/tests/modules/theme_test/theme_test.module b/core/modules/system/tests/modules/theme_test/theme_test.module
index 51cb6d3..0aa4a01 100644
--- a/core/modules/system/tests/modules/theme_test/theme_test.module
+++ b/core/modules/system/tests/modules/theme_test/theme_test.module
@@ -150,7 +150,7 @@ function _theme_test_suggestion() {
}
/**
- * Implements hook_preprocess_HOOK() for html.tpl.php.
+ * Implements hook_preprocess_HOOK() for html.html.twig.
*/
function theme_test_preprocess_html(&$variables) {
$variables['html_attributes']['theme_test_html_attribute'] = 'theme test html attribute value';
@@ -177,7 +177,7 @@ function theme_theme_test_function_template_override($variables) {
}
/**
- * Process variables for theme-test-render-element.tpl.php.
+ * Process variables for theme-test-render-element.html.twig.
*/
function template_preprocess_theme_test_render_element(&$variables) {
$variables['attributes']['data-variables-are-preprocessed'] = TRUE;
diff --git a/core/modules/taxonomy/taxonomy.api.php b/core/modules/taxonomy/taxonomy.api.php
index ca3af07..f6a933e 100644
--- a/core/modules/taxonomy/taxonomy.api.php
+++ b/core/modules/taxonomy/taxonomy.api.php
@@ -282,7 +282,7 @@ function hook_taxonomy_term_view(\Drupal\taxonomy\Plugin\Core\Entity\Term $term,
* If the module wishes to act on the rendered HTML of the term rather than the
* structured content array, it may use this hook to add a #post_render
* callback. Alternatively, it could also implement
- * hook_preprocess_HOOK() for taxonomy-term.tpl.php. See drupal_render() and
+ * hook_preprocess_HOOK() for taxonomy-term.html.twig. See drupal_render() and
* theme() documentation respectively for details.
*
* @param $build
diff --git a/core/modules/tour/tour.module b/core/modules/tour/tour.module
index 4f9ea1b..2c0c92b 100644
--- a/core/modules/tour/tour.module
+++ b/core/modules/tour/tour.module
@@ -103,7 +103,7 @@ function tour_toolbar() {
}
/**
- * Implements hook_preprocess_HOOK() for page.tpl.php.
+ * Implements hook_preprocess_HOOK() for page.html.twig.
*/
function tour_preprocess_page(&$variables) {
if (!user_access('access tour')) {
diff --git a/core/modules/user/user.api.php b/core/modules/user/user.api.php
index 2e8fb8d..a8058ff 100644
--- a/core/modules/user/user.api.php
+++ b/core/modules/user/user.api.php
@@ -347,7 +347,7 @@ function hook_user_view(\Drupal\user\UserInterface $account, \Drupal\entity\Plug
* If the module wishes to act on the rendered HTML of the user rather than the
* structured content array, it may use this hook to add a #post_render callback.
* Alternatively, it could also implement hook_preprocess_HOOK() for
- * user.tpl.php. See drupal_render() and theme() documentation
+ * user.html.twig. See drupal_render() and theme() documentation
* respectively for details.
*
* @param $build
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index b94e78a..02a3da4 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -1421,7 +1421,7 @@ function user_view_page($account) {
* - $page['content']['#user']:
* The user account of the profile being viewed.
*
- * To theme user profiles, copy modules/user/user.tpl.php
+ * To theme user profiles, copy core/modules/user/templates/user.html.twig
* to your theme directory, and edit it as instructed in that file's comments.
*
* @param $account
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
index b0cbb7b..c091837 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
@@ -1886,7 +1886,7 @@ public function buildOptionsForm(&$form, &$form_state) {
}
else {
$output .= '' . t('This is the default theme template used for this display.') . '
';
- $output .= '' . check_plain(file_get_contents('./' . $this->definition['theme_path'] . '/' . strtr($this->definition['theme'], '_', '-') . '.tpl.php')) . '
';
+ $output .= '' . check_plain(file_get_contents('./' . $this->definition['theme_path'] . '/' . strtr($this->definition['theme'], '_', '-') . '.html.twig')) . '
';
}
$form['analysis'] = array(
@@ -1906,7 +1906,7 @@ public function buildOptionsForm(&$form, &$form_state) {
}
else {
$output .= '' . t('This is the default theme template used for this style.') . '
';
- $output .= '' . check_plain(file_get_contents('./' . $plugin->definition['theme_path'] . '/' . strtr($plugin->definition['theme'], '_', '-') . '.tpl.php')) . '
';
+ $output .= '' . check_plain(file_get_contents('./' . $plugin->definition['theme_path'] . '/' . strtr($plugin->definition['theme'], '_', '-') . '.html.twig')) . '
';
}
$form['analysis'] = array(
@@ -1926,7 +1926,7 @@ public function buildOptionsForm(&$form, &$form_state) {
}
else {
$output .= '' . t('This is the default theme template used for this row style.') . '
';
- $output .= '' . check_plain(file_get_contents('./' . $plugin->definition['theme_path'] . '/' . strtr($plugin->definition['theme'], '_', '-') . '.tpl.php')) . '
';
+ $output .= '' . check_plain(file_get_contents('./' . $plugin->definition['theme_path'] . '/' . strtr($plugin->definition['theme'], '_', '-') . '.html.twig')) . '
';
}
$form['analysis'] = array(
@@ -1943,7 +1943,7 @@ public function buildOptionsForm(&$form, &$form_state) {
// Field templates aren't registered the normal way...and they're always
// this one, anyhow.
- $output .= '' . check_plain(file_get_contents(drupal_get_path('module', 'views') . '/templates/views-view-field.tpl.php')) . '
';
+ $output .= '' . check_plain(file_get_contents(drupal_get_path('module', 'views') . '/templates/views-view-field.html.twig')) . '
';
$form['analysis'] = array(
'#markup' => '' . $output . '
',
diff --git a/core/modules/views/tests/modules/views_test_data/views_test_data.module b/core/modules/views/tests/modules/views_test_data/views_test_data.module
index b00f8e8..6d12697 100644
--- a/core/modules/views/tests/modules/views_test_data/views_test_data.module
+++ b/core/modules/views/tests/modules/views_test_data/views_test_data.module
@@ -56,7 +56,7 @@ function views_test_data_handler_test_access_callback_argument($argument = FALSE
}
/**
- * Implements hook_preprocess_HOOK() for views-view-table.tpl.php.
+ * Implements hook_preprocess_HOOK() for views-view-table.html.twig.
*/
function views_test_data_preprocess_views_view_table(&$variables) {
if ($variables['view']->storage->id() == 'test_view_render') {
diff --git a/core/modules/views/views.module b/core/modules/views/views.module
index 2165f67..81bbc06 100644
--- a/core/modules/views/views.module
+++ b/core/modules/views/views.module
@@ -475,7 +475,7 @@ function views_preprocess_html(&$variables) {
// associated with. This we don't want; for better visual highlighting, we
// prefer a smaller region to be chosen. The region we prefer differs from
// theme to theme and depends on the details of the theme's markup in
- // page.tpl.php, so we can only find it using JavaScript. We therefore remove
+ // page.html.twig, so we can only find it using JavaScript. We therefore remove
// the "contextual-region" class from the tag here and add
// JavaScript that will insert it back in the correct place.
if (!empty($variables['page']['#views_contextual_links'])) {
diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc
index 8b63c8e..69f6e622 100644
--- a/core/modules/views/views.theme.inc
+++ b/core/modules/views/views.theme.inc
@@ -1202,16 +1202,16 @@ function theme_views_mini_pager($variables) {
* The default style for all views is views-view-unformatted.html.twig.
*
* Many styles will then farm out the actual display of each row to a row
- * style; the default row style is views-view-fields.tpl.php.
+ * style; the default row style is views-view-fields.html.twig.
*
* Here is an example of all the templates that will be tried in the following
* case:
*
* View, named foobar. Style: unformatted. Row style: Fields. Display: Page.
*
- * - views-view--foobar--page.tpl.php
- * - views-view--page.tpl.php
- * - views-view--foobar.tpl.php
+ * - views-view--foobar--page.html.twig
+ * - views-view--page.html.twig
+ * - views-view--foobar.html.twig
* - views-view.html.twig
*
* - views-view-unformatted--foobar--page.html.twig
@@ -1219,10 +1219,10 @@ function theme_views_mini_pager($variables) {
* - views-view-unformatted--foobar.html.twig
* - views-view-unformatted.html.twig
*
- * - views-view-fields--foobar--page.tpl.php
- * - views-view-fields--page.tpl.php
- * - views-view-fields--foobar.tpl.php
- * - views-view-fields.tpl.php
+ * - views-view-fields--foobar--page.html.twig
+ * - views-view-fields--page.html.twig
+ * - views-view-fields--foobar.html.twig
+ * - views-view-fields.html.twig
*
* Important! When adding a new template to your theme, be sure to flush the
* theme registry cache!
diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js
index 9dc1075..46a2add 100644
--- a/core/modules/views_ui/js/views-admin.js
+++ b/core/modules/views_ui/js/views-admin.js
@@ -553,7 +553,7 @@ Drupal.viewsUi.rearrangeFilterHandler.prototype.insertAddRemoveFilterGroupLinks
var $ = jQuery;
// Insert a link for adding a new group at the top of the page, and make it
- // match the action links styling used in a typical page.tpl.php. Note that
+ // match the action links styling used in a typical page.html.twig. Note that
// Drupal does not provide a theme function for this markup, so this is the
// best we can do.
$('')
diff --git a/core/themes/bartik/bartik.theme b/core/themes/bartik/bartik.theme
index ff72897..899f3fd 100644
--- a/core/themes/bartik/bartik.theme
+++ b/core/themes/bartik/bartik.theme
@@ -6,7 +6,7 @@
*/
/**
- * Implements hook_preprocess_HOOK() for html.tpl.php.
+ * Implements hook_preprocess_HOOK() for html.html.twig.
*
* Adds body classes if certain regions have content.
*/
diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme
index 3dc83ac..c4aafe7 100644
--- a/core/themes/seven/seven.theme
+++ b/core/themes/seven/seven.theme
@@ -11,7 +11,7 @@ use Drupal\Core\Template\RenderWrapper;
* Implements hook_preprocess_HOOK() for maintenance-page.html.twig.
*/
function seven_preprocess_maintenance_page(&$variables) {
- // While markup for normal pages is split into page.tpl.php and html.tpl.php,
+ // While markup for normal pages is split into page.html.twig and html.html.twig,
// the markup for the maintenance page is all in the single
// maintenance-page.html.twig template. So, to have what's done in
// seven_preprocess_html() also happen on the maintenance page, it has to be
@@ -20,14 +20,14 @@ function seven_preprocess_maintenance_page(&$variables) {
}
/**
- * Implements hook_preprocess_HOOK() for html.tpl.php.
+ * Implements hook_preprocess_HOOK() for html.html.twig.
*/
function seven_preprocess_html(&$variables) {
drupal_add_library('system', 'normalize');
}
/**
- * Implements hook_preprocess_HOOK() for page.tpl.php.
+ * Implements hook_preprocess_HOOK() for page.html.twig.
*/
function seven_preprocess_page(&$variables) {
$variables['primary_local_tasks'] = $variables['tabs'];
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index fe16cfc..e26898b 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
@@ -568,7 +568,7 @@
* is explicitly set to maintenance mode through the administration page or when
* the database is inactive due to an error. It can be set through the
* 'maintenance_theme' key. The template file should also be copied into the
- * theme. It is located inside 'core/modules/system/maintenance-page.tpl.php'.
+ * theme. It is located inside 'core/modules/system/maintenance-page.html.twig'.
* Note: This setting does not apply to installation and update pages.
*/
# $conf['maintenance_theme'] = 'bartik';