/**
  * This method creates the module menu if necessary
  * afterwards you only need an instance of \TYPO3\CMS\Backend\Module\ModuleStorage
  * to get the menu
  *
  * @return void
  */
 public function createModuleMenu()
 {
     if (empty($this->moduleMenu->getEntries())) {
         /** @var $moduleMenu \TYPO3\CMS\Backend\View\ModuleMenuView */
         $moduleMenu = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\View\ModuleMenuView::class);
         $rawData = $moduleMenu->getRawModuleData();
         $this->convertRawModuleDataToModuleMenuObject($rawData);
         $this->createMenuEntriesForTbeModulesExt();
     }
 }
 /**
  * This method creates the module menu if necessary
  * afterwards you only need an instance of \TYPO3\CMS\Backend\Module\ModuleStorage
  * to get the menu
  *
  * @return void
  */
 public function createModuleMenu()
 {
     if (count($this->moduleMenu->getEntries()) === 0) {
         /** @var $moduleMenu \TYPO3\CMS\Backend\View\ModuleMenuView */
         $moduleMenu = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\View\\ModuleMenuView');
         $rawData = $moduleMenu->getRawModuleData();
         $this->convertRawModuleDataToModuleMenuObject($rawData);
         $this->createMenuEntriesForTbeModulesExt();
     }
 }
 /**
  * Finds a module menu entry by name
  *
  * @param string $name
  * @return \TYPO3\CMS\Backend\Domain\Model\Module\BackendModule|bool
  */
 public function findByModuleName($name)
 {
     $entries = $this->moduleStorage->getEntries();
     $entry = $this->findByModuleNameInGivenEntries($name, $entries);
     return $entry;
 }