Skip to content
Snippets Groups Projects
Commit bd0dce58 authored by Martin Anderson-Clutz's avatar Martin Anderson-Clutz
Browse files

Issue #3341733 by Barry_Fisher, mandclu: LogicException: Render context is...

Issue #3341733 by Barry_Fisher, mandclu: LogicException: Render context is empty, because render() was called outside of a renderRoot() or renderPlain() call
parent 18d352af
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,7 @@ function smart_date_recur_tokens($type, $tokens, array $data, array $options, Bu
$rrules_processed[] = $rrid;
}
// @todo More structure or markup around mutiple values?
$output = \Drupal::service('renderer')->render($rule_text);
$output = \Drupal::service('renderer')->renderPlain($rule_text);
$replacements[$original] = $output;
continue;
} // End rule_text token processing.
......@@ -207,7 +207,7 @@ function smart_date_recur_tokens($type, $tokens, array $data, array $options, Bu
}
}
$output = \Drupal::service('renderer')->render($values);
$output = \Drupal::service('renderer')->renderPlain($values);
$replacements[$original] = $output;
}
return $replacements;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment