private function addFileManagement(MenuEntry $root)
    {
        $fileEntry = $root->add(
            MenuEntry::create('files')
                ->setLabel(Trans::__('general.phrase.file-management'))
                ->setIcon('fa:cubes')
                ->setPermission('files')
        );

        // Uploaded files
        $fileEntry->add(
            MenuEntry::create('files_uploads')
                ->setRoute('files')
                ->setLabel(Trans::__('general.phrase.general.phrase.uploaded-files'))
                ->setIcon('fa:folder-open-o')
                ->setPermission('files:uploads')
        );

        // Themes
        $fileEntry->add(
            MenuEntry::create('files_themes')
                ->setRoute('files', ['namespace' => 'themes'])
                ->setLabel(Trans::__('general.phrase.view-edit-templates'))
                ->setIcon('fa:desktop')
                ->setPermission('files:theme')
        );
    }
private function addFileManagement(MenuEntry $root)
    {
        $fileEntry = $root->add(
            MenuEntry::create('files')
                ->setLabel(Trans::__('general.phrase.file-management'))
                ->setIcon('fa:cubes')
                ->setPermission('files')
        );

        // Uploaded files
        $fileEntry->add(
            MenuEntry::create('files_uploads')
                ->setRoute('files')
                ->setLabel(Trans::__('general.phrase.general.phrase.uploaded-files'))
                ->setIcon('fa:folder-open-o')
                ->setPermission('files:uploads')
        );

        // Themes
        $fileEntry->add(
            MenuEntry::create('files_themes')
                ->setRoute('files', ['namespace' => 'themes'])
                ->setLabel(Trans::__('general.phrase.view-edit-templates'))
                ->setIcon('fa:desktop')
                ->setPermission('files:theme')
        );
    }
private function addFileManagement ( MenuEntry $ root ) { $ fileEntry = $ root -> add ( MenuEntry :: create ( 'files' ) -> setLabel ( Trans :: __ ( 'general.phrase.file-management' ) ) -> setIcon ( 'fa:cubes' ) -> setPermission ( 'files' ) ) ; // Uploaded files $ fileEntry -> add ( MenuEntry :: create ( 'files_uploads' ) -> setRoute ( 'files' ) -> setLabel ( Trans :: __ ( 'general.phrase.general.phrase.uploaded-files' ) ) -> setIcon ( 'fa:folder-open-o' ) -> setPermission ( 'files:uploads' ) ) ; // Themes $ fileEntry -> add ( MenuEntry :: create ( 'files_themes' ) -> setRoute ( 'files' , [ 'namespace' => 'themes' ] ) -> setLabel ( Trans :: __ ( 'general.phrase.view-edit-templates' ) ) -> setIcon ( 'fa:desktop' ) -> setPermission ( 'files:theme' ) ) ; }
File management menus.

@param MenuEntry $root
File management menus .