Unverified Commit 95753cd3 authored by git's avatar git Committed by Kingdutch

Issue #3119603 by Suresh Prabhu Parkala, edycarreyes99, samiksha.gupta008: Drupal 9 readiness

parent 9fb7e375
......@@ -15,7 +15,7 @@
}
],
"require": {
"drupal/core": "^8.5",
"drupal/core": "^8 || ^9",
"drupal/metatag": "^1.3",
"goalgorilla/rtseo.js": "^2.0"
},
......
......@@ -4,6 +4,7 @@ namespace Drupal\yoast_seo\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Url;
use Drupal\Core\Link;
/**
* SettingsController.
......@@ -38,10 +39,10 @@ class SettingsController extends ControllerBase {
$xmlsitemap_description = $this->t(
'You can configure the XML Sitemap settings at the @url.',
[
'@url' => \Drupal::l(
'@url' => Link::fromTextAndUrl(
$this->t('configuration page'),
Url::fromRoute('xmlsitemap.admin_search')
),
)->toString(),
]
);
}
......@@ -57,10 +58,10 @@ class SettingsController extends ControllerBase {
$xmlsitemap_description = $this->t(
'You can configure the Simple XML Sitemap settings at the @url.',
[
'@url' => \Drupal::l(
'@url' => Link::fromTextAndUrl(
$this->t('configuration page'),
Url::fromRoute('simple_sitemap.settings')
),
)->toString(),
]
);
}
......@@ -97,10 +98,10 @@ class SettingsController extends ControllerBase {
$metatag_description = $this->t(
'You can configure and override the Metatag title & description default settings at the @url.',
[
'@url' => \Drupal::l(
'@url' => Link::fromTextAndUrl(
$this->t('Metatag configuration page'),
Url::fromRoute('entity.metatag_defaults.collection')
),
)->toString(),
]
);
}
......
......@@ -10,6 +10,14 @@ use Drupal\Tests\BrowserTestBase;
* @group yoast_seo_ui
*/
class ConfigurationPageTest extends BrowserTestBase {
/**
* The theme to use for this test.
*
* @var string
*/
protected $defaultTheme = 'stark';
/**
* Modules to enable.
*
......
......@@ -4,6 +4,7 @@ package: SEO
type: module
core: 8.x
core_version_requirement: ^8 || ^9
configure: yoast_seo.settings
dependencies:
......
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