Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simple_feedback
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
simple_feedback
Commits
d939fee0
Commit
d939fee0
authored
11 months ago
by
Sang Lostrie
Committed by
Scott Allison
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3419801
by baikho: Drupal 10 compatibility
parent
cce28e1c
Branches
8.x-1.x
8.x-2.x
Tags
2.0.0
2 merge requests
!2
Resolve #3476675 "Fix phpcodesniffer issues"
,
!1
Issue #3419801: Drupal 10 compatibility
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
simple_feedback.info.yml
+1
-0
1 addition, 0 deletions
simple_feedback.info.yml
src/Plugin/Block/SimpleFeedbackBlock.php
+2
-2
2 additions, 2 deletions
src/Plugin/Block/SimpleFeedbackBlock.php
with
3 additions
and
2 deletions
simple_feedback.info.yml
+
1
−
0
View file @
d939fee0
name
:
'
Simple
Feedback'
description
:
'
Provides
a
block
to
allow
users
to
vote
yes
or
no
for
usefullness
of
a
page.'
core
:
8.x
core_version_requirement
:
^8 || ^9 || ^10
type
:
module
This diff is collapsed.
Click to expand it.
src/Plugin/Block/SimpleFeedbackBlock.php
+
2
−
2
View file @
d939fee0
...
...
@@ -50,8 +50,8 @@ class SimpleFeedbackBlock extends BlockBase {
$content_type
=
$node
->
type
->
entity
->
label
();
$args
=
[
':content_type'
=>
strtolower
(
$content_type
),
'@yes'
=>
render
(
$yes
),
'@no'
=>
render
(
$no
),
'@yes'
=>
\Drupal
::
service
(
'renderer'
)
->
render
(
$yes
),
'@no'
=>
\Drupal
::
service
(
'renderer'
)
->
render
(
$no
),
];
$output
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment