code: private function generateOptions($folder, $rootAlias)
      {
          $assetsPath = $this->configurationHandler->uploadAssetsDir() . '/' . $folder;
          if (!is_dir($assetsPath)) {
              @mkdir($assetsPath);
          }
  
          $options = array(
              'locale' => '',
              'roots' => array(
                  array(
                      'driver' => 'LocalFileSystem',
                      // driver for accessing file system (REQUIRED)
                      'path' => $assetsPath,
                      // path to files (REQUIRED)
                      'URL' => $this->configurationHandler->absoluteUploadAssetsDir() . '/' . $folder,
                      // URL to files (REQUIRED)
                      'accessControl' => 'access',
                      // disable and hide dot starting files (OPTIONAL)
                      'rootAlias' => $rootAlias
                      // disable and hide dot starting files (OPTIONAL)
                  )
              )
          );
  
          return $options;
      }
docs: Generates the elFinder options
  
  @param string $folder
  @param string $rootAlias
  @return array