summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2014-06-27 20:37:56 (GMT)
committerwebchick2014-06-27 20:38:15 (GMT)
commit19475dd4cf56b1f8dcb31c429ee4c048749f1bad (patch)
tree9d8acd4db93ebff29ef6b88fa09b00065b7a54a0
parent3b1cb04b3c6ed898c2bae123ea13b20869f2e68f (diff)
Issue #1468582 by mgifford, janusman, edward_or, tstoeckler, alanburke, Schnitzel, dcmouyard, LewisNyman: Add mobile friendly meta tags to the html.tpl.php.
-rw-r--r--core/lib/Drupal/Core/Page/DefaultHtmlFragmentRenderer.php4
-rw-r--r--core/modules/system/src/Tests/System/DefaultMobileMetaTagsTest.php4
2 files changed, 2 insertions, 6 deletions
diff --git a/core/lib/Drupal/Core/Page/DefaultHtmlFragmentRenderer.php b/core/lib/Drupal/Core/Page/DefaultHtmlFragmentRenderer.php
index 9254b44..93d9b40 100644
--- a/core/lib/Drupal/Core/Page/DefaultHtmlFragmentRenderer.php
+++ b/core/lib/Drupal/Core/Page/DefaultHtmlFragmentRenderer.php
@@ -127,9 +127,7 @@ class DefaultHtmlFragmentRenderer implements HtmlFragmentRendererInterface {
)));
// Display the html.html.twig's default mobile metatags for responsive design.
- $page->addMetaElement(new MetaElement(NULL, array('name' => 'MobileOptimized', 'content' => 'width')));
- $page->addMetaElement(new MetaElement(NULL, array('name' => 'HandheldFriendly', 'content' => 'true')));
- $page->addMetaElement(new MetaElement(NULL, array('name' => 'viewport', 'content' => 'width=device-width')));
+ $page->addMetaElement(new MetaElement(NULL, array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0')));
}
}
diff --git a/core/modules/system/src/Tests/System/DefaultMobileMetaTagsTest.php b/core/modules/system/src/Tests/System/DefaultMobileMetaTagsTest.php
index b235aed..ce750bf 100644
--- a/core/modules/system/src/Tests/System/DefaultMobileMetaTagsTest.php
+++ b/core/modules/system/src/Tests/System/DefaultMobileMetaTagsTest.php
@@ -25,9 +25,7 @@ class DefaultMobileMetaTagsTest extends WebTestBase {
function setUp() {
parent::setUp();
$this->default_metatags = array(
- 'MobileOptimized' => '<meta name="MobileOptimized" content="width" />',
- 'HandheldFriendly' => '<meta name="HandheldFriendly" content="true" />',
- 'viewport' => '<meta name="viewport" content="width=device-width" />',
+ 'viewport' => '<meta name="viewport" content="width=device-width, initial-scale=1.0" />',
);
}