Commit 96e41f6e authored by markcarver's avatar markcarver

Issue #3076678 by markcarver: Pre-render and Process callbacks are sometimes invoked twice

Signed-off-by: markcarver's avatarMark Carver <mark.carver@me.com>
parent 92d816d7
......@@ -37,6 +37,9 @@ class PrerenderManager extends PluginManager {
return $element;
}
// Don't pre-render twice.
$element['#bootstrap_ignore_pre_render'] = TRUE;
$e = Element::create($element);
if ($e->isType('machine_name')) {
......
......@@ -46,6 +46,9 @@ class ProcessManager extends PluginManager {
return $element;
}
// Don't process twice.
$element['#bootstrap_ignore_process'] = TRUE;
static $theme;
if (!isset($theme)) {
$theme = Bootstrap::getTheme();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment