|
@@ -56,6 +56,12 @@ class HeartbeatTypeForm extends EntityForm {
|
|
|
$this->treeBuilder = $tree_builder;
|
|
|
$this->renderer = $renderer;
|
|
|
|
|
|
+ $this->tokenTree = $this->renderer->render($this->treeBuilder->buildAllRenderable([
|
|
|
+ 'click_insert' => TRUE,
|
|
|
+ 'show_restricted' => TRUE,
|
|
|
+ 'show_nested' => FALSE,
|
|
|
+ ]));
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -199,12 +205,6 @@ class HeartbeatTypeForm extends EntityForm {
|
|
|
],
|
|
|
];
|
|
|
|
|
|
- if ($this->tokenTree == null) $this->tokenTree = $this->renderer->render($this->treeBuilder->buildAllRenderable([
|
|
|
- 'click_insert' => TRUE,
|
|
|
- 'show_restricted' => TRUE,
|
|
|
- 'show_nested' => FALSE,
|
|
|
- ]));
|
|
|
-
|
|
|
$form['tokens'] = array(
|
|
|
'#prefix' => '<div id="token-tree"></div>',
|
|
|
'#markup' => $this->tokenTree
|