-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Simple Sitemap base URL setting (#3735)
- Loading branch information
Clayton Liddell
authored
Jan 4, 2022
1 parent
2baa835
commit ded75fd
Showing
4 changed files
with
57 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modules/dkan_js_frontend/tests/src/Unit/Routing/RouteProviderJSTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
modules/dkan_js_frontend/tests/src/Unit/SimpleSitemapSettingsInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Drupal\Tests\dkan_js_frontend\Unit; | ||
|
||
/** | ||
* Settings service mock interface. | ||
*/ | ||
interface SimpleSitemapSettingsInterface { | ||
|
||
/** | ||
* Returns a specific setting or a default value if setting does not exist. | ||
* | ||
* @param string $name | ||
* Name of the setting, like 'max_links'. | ||
* @param mixed $default | ||
* Value to be returned if the setting does not exist in the configuration. | ||
* | ||
* @return mixed | ||
* The current setting from configuration or a default value. | ||
*/ | ||
public function get(string $name, $default = NULL); | ||
|
||
} |