original_string: public function getEditorThemeOptions()
      {
          $themeDir = new DirectoryIterator("modules/backend/formwidgets/codeeditor/assets/vendor/ace/");
          $themes = [];
  
          // Iterate through the themes
          foreach ($themeDir as $node) {
  
              // If this file is a theme (starting by "theme-")
              if (!$node->isDir() && substr($node->getFileName(), 0, 6) == 'theme-') {
                  // Remove the theme- prefix and the .js suffix, create an user friendly and capitalized name
                  $themeId = substr($node->getFileName(), 6, -3);
                  $themeName = ucwords(str_replace("_", " ", $themeId));
  
                  // Add the values to the themes array
                  if ($themeId != static::DEFAULT_THEME) {
                      $themes[$themeId] = $themeName;
                  }
              }
  
          }
  
          // Sort the theme alphabetically, and push the default theme
          asort($themes);
          return [static::DEFAULT_THEME => ucwords(static::DEFAULT_THEME)] + $themes;
      }
code: public function getEditorThemeOptions()
      {
          $themeDir = new DirectoryIterator("modules/backend/formwidgets/codeeditor/assets/vendor/ace/");
          $themes = [];
  
          // Iterate through the themes
          foreach ($themeDir as $node) {
  
              // If this file is a theme (starting by "theme-")
              if (!$node->isDir() && substr($node->getFileName(), 0, 6) == 'theme-') {
                  // Remove the theme- prefix and the .js suffix, create an user friendly and capitalized name
                  $themeId = substr($node->getFileName(), 6, -3);
                  $themeName = ucwords(str_replace("_", " ", $themeId));
  
                  // Add the values to the themes array
                  if ($themeId != static::DEFAULT_THEME) {
                      $themes[$themeId] = $themeName;
                  }
              }
  
          }
  
          // Sort the theme alphabetically, and push the default theme
          asort($themes);
          return [static::DEFAULT_THEME => ucwords(static::DEFAULT_THEME)] + $themes;
      }
code_tokens: public function getEditorThemeOptions ( ) { $ themeDir = new DirectoryIterator ( "modules/backend/formwidgets/codeeditor/assets/vendor/ace/" ) ; $ themes = [ ] ; // Iterate through the themes foreach ( $ themeDir as $ node ) { // If this file is a theme (starting by "theme-") if ( ! $ node -> isDir ( ) && substr ( $ node -> getFileName ( ) , 0 , 6 ) == 'theme-' ) { // Remove the theme- prefix and the .js suffix, create an user friendly and capitalized name $ themeId = substr ( $ node -> getFileName ( ) , 6 , - 3 ) ; $ themeName = ucwords ( str_replace ( "_" , " " , $ themeId ) ) ; // Add the values to the themes array if ( $ themeId != static :: DEFAULT_THEME ) { $ themes [ $ themeId ] = $ themeName ; } } } // Sort the theme alphabetically, and push the default theme asort ( $ themes ) ; return [ static :: DEFAULT_THEME => ucwords ( static :: DEFAULT_THEME ) ] + $ themes ; }
docstring: Returns the theme options for the backend editor.
  @return array
docstring_tokens: Returns the theme options for the backend editor .