We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5cd62c + fd6226c commit 71f5ee7Copy full SHA for 71f5ee7
src/Plugin/Block/PatternkitBlock.php
@@ -7,8 +7,6 @@
7
use Drupal\Component\Utility\Xss;
8
use Drupal\Core\Ajax\AjaxResponse;
9
use Drupal\Core\Ajax\ReplaceCommand;
10
-use Drupal\Core\Annotation\Translation;
11
-use Drupal\Core\Block\Annotation\Block;
12
use Drupal\Core\Block\BlockBase;
13
use Drupal\Core\Block\BlockManagerInterface;
14
use Drupal\Core\Entity\EntityTypeManagerInterface;
@@ -610,7 +608,7 @@ public function build() {
610
608
$template = str_replace($token, $placeholder, $template);
611
609
}
612
613
- $value = $this->twig->renderInline($template, $template_context);
+ $value = (string) $this->twig->renderInline($template, $template_context);
614
});
615
$pattern->config = $config;
616
0 commit comments