TYPO3 CMS  TYPO3_6-2
TriggerViewHelper.php
Go to the documentation of this file.
1 <?php
3 
17 use \TYPO3\CMS\Extensionmanager\Controller\AbstractController;
18 
33 
43  public function render($triggers = array()) {
44  $doc = $this->getDocInstance();
45  $pageRenderer = $doc->getPageRenderer();
46  // Handle triggers
47  if (!empty($triggers[AbstractController::TRIGGER_RefreshModuleMenu])) {
48  $pageRenderer->addJsInlineCode(
49  AbstractController::TRIGGER_RefreshModuleMenu,
50  'if (top.TYPO3ModuleMenu.refreshMenu) { top.TYPO3ModuleMenu.refreshMenu(); }'
51  );
52  }
53  return '';
54  }
55 
56 }