[BUGFIX] Add UI blocker to prevent loading issues in FormEngine
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Template / ModuleTemplate.php
index 358c56b..3f5053d 100644 (file)
@@ -86,6 +86,11 @@ class ModuleTemplate
      */
     protected $pageRenderer;
 
+    /**
+     * @var bool
+     */
+    protected $uiBlock = false;
+
     /**
      * TemplateRootPath
      *
@@ -336,6 +341,7 @@ class ModuleTemplate
         if ($this->moduleName) {
             $this->view->assign('moduleName', $this->moduleName);
         }
+        $this->view->assign('uiBlock', $this->uiBlock);
         $this->view->assign('flashMessageQueueIdentifier', $this->getFlashMessageQueue()->getIdentifier());
         $renderedPage = $this->pageRenderer->render(PageRenderer::PART_HEADER);
         $renderedPage .= $this->bodyTag;
@@ -702,4 +708,20 @@ class ModuleTemplate
         }
         return $this->flashMessageQueue;
     }
+
+    /**
+     * @return bool
+     */
+    public function isUiBlock() : bool
+    {
+        return $this->uiBlock;
+    }
+
+    /**
+     * @param bool $uiBlock
+     */
+    public function setUiBlock(bool $uiBlock)
+    {
+        $this->uiBlock = $uiBlock;
+    }
 }