Skip to content
Snippets Groups Projects
Commit d939fee0 authored by Sang Lostrie's avatar Sang Lostrie :speech_balloon: Committed by Scott Allison
Browse files

Issue #3419801 by baikho: Drupal 10 compatibility

parent cce28e1c
Tags 2.0.0
2 merge requests!2Resolve #3476675 "Fix phpcodesniffer issues",!1Issue #3419801: Drupal 10 compatibility
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
......@@ -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 = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment