Skip to content
Snippets Groups Projects
Commit 8318cfe1 authored by Ismaeil Abouljamal's avatar Ismaeil Abouljamal Committed by Mike Decker
Browse files

Issue #3385148: Calling ->render()on string throws errors

parent c51e95c7
No related branches found
Tags 8.x-2.18
1 merge request!12Issue #3385148: Calling ->render()on string throws errors
......@@ -70,7 +70,8 @@ class AssetInjectorListBuilder extends ConfigEntityListBuilder {
$data['conditions'][$condition_id] = $this->t('%plugin is configured.', ['%plugin' => $condition->getPluginDefinition()['label']]);
/** @var \Drupal\Core\StringTranslation\TranslatableMarkup $summary */
if ($summary = $condition->summary()) {
$data['conditions'][$condition_id] = Html::decodeEntities($summary->render());
$data['conditions'][$condition_id] = is_string($summary) ? Html::decodeEntities($summary) : Html::decodeEntities($summary->render());
}
}
......
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