group behaviors

This commit is contained in:
Jean-Christian Paul Denis 2022-12-26 21:19:57 +01:00
parent c21a305f56
commit 36796545d5
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -18,9 +18,11 @@ if (!dcCore::app()->auth->isSuperAdmin()) {
return null; return null;
} }
dcCore::app()->addBehavior('adminModulesListGetActions', ['translaterAdminBehaviors', 'adminModulesGetActions']); dcCore::app()->addBehaviors([
dcCore::app()->addBehavior('adminModulesListDoActions', ['translaterAdminBehaviors', 'adminModulesDoActions']); 'adminModulesListGetActions' => ['translaterAdminBehaviors', 'adminModulesGetActions'],
dcCore::app()->addBehavior('adminDashboardFavoritesV2', ['translaterAdminBehaviors', 'adminDashboardFavoritesV2']); 'adminModulesListDoActions' => ['translaterAdminBehaviors', 'adminModulesDoActions'],
'adminDashboardFavoritesV2' => ['translaterAdminBehaviors', 'adminDashboardFavoritesV2'],
]);
dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem( dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem(
__('Translater'), __('Translater'),