$this->
subscribeEvent( 'Enlight_Controller_Action_PostDispatch_Backend_Index',
'onBackendIndexPostDispatch'
);
$this->
subscribeEvent( 'Enlight_Controller_Dispatcher_ControllerPath_Backend_SwagUpdate',
'onGetSwagUpdateControllerPath'
);
$this->
createMenuItem([ 'label' => 'SwagUpdate',
'controller' => 'SwagUpdate',
'class' => 'sprite-arrow-continue-090',
'action' => 'Index',
'active' => 1,
'parent' =>
$this->
Menu()->
findOneBy(['id' => 40
]), // help menu
]);
return ['success' => true, 'invalidateCache' =>
['backend'
]];
}