Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
simple_sitemap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
simple_sitemap
Commits
a1103624
Commit
a1103624
authored
Nov 15, 2019
by
sleitner
Committed by
Pawel G
Nov 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3094476
by sleitner, gbyte.co: PHP 7.4 and Drupal 9 testing deprecation
parent
d4e33c0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
src/Form/SimplesitemapEntitiesForm.php
src/Form/SimplesitemapEntitiesForm.php
+1
-1
tests/src/Functional/SimplesitemapTestBase.php
tests/src/Functional/SimplesitemapTestBase.php
+14
-0
No files found.
src/Form/SimplesitemapEntitiesForm.php
View file @
a1103624
...
...
@@ -115,7 +115,7 @@ class SimplesitemapEntitiesForm extends SimplesitemapFormBase {
$indexed_bundles_string
=
''
;
if
(
isset
(
$indexed_bundles
[
$entity_type_id
]))
{
foreach
(
$indexed_bundles
[
$entity_type_id
]
as
$bundle
=>
$bundle_data
)
{
$indexed_bundles_string
.
=
'<br><em>'
.
$bundle_data
[
'bundle_label'
]
.
'</em> <span class="description">('
.
$this
->
t
(
'sitemap variants'
)
.
': <em>'
.
implode
(
$bundle_data
[
'variants'
],
', '
)
.
'</em>)</span>'
;
$indexed_bundles_string
.
=
'<br><em>'
.
$bundle_data
[
'bundle_label'
]
.
'</em> <span class="description">('
.
$this
->
t
(
'sitemap variants'
)
.
': <em>'
.
implode
(
', '
,
$bundle_data
[
'variants'
]
)
.
'</em>)</span>'
;
}
}
...
...
tests/src/Functional/SimplesitemapTestBase.php
View file @
a1103624
...
...
@@ -61,6 +61,20 @@ abstract class SimplesitemapTestBase extends BrowserTestBase {
protected
$defaultSitemapUrl
=
'sitemap.xml'
;
/**
* Use the testing profile.
*
* @var string
*/
protected
$profile
=
'testing'
;
/**
* Use the classy theme.
*
* @var string
*/
protected
$defaultTheme
=
'classy'
;
/**
* {@inheritdoc}
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment