original_string: protected function process_breadcrumbs($path) {
          // Process breadcrumb trail.
          // Note: Dropbox is case insensitive.
          // Without performing an additional API call, it isn't possible to get the path_display.
          // As a result, the path here is the path_lower.
          $breadcrumbs = [
              [
                  'path' => '/',
                  'name' => get_string('dropbox', 'repository_dropbox'),
              ],
          ];
  
          $path = rtrim($path, '/');
          $directories = explode('/', $path);
          $pathtodate = '';
          foreach ($directories as $directory) {
              if ($directory === '') {
                  continue;
              }
              $pathtodate .= '/' . $directory;
              $breadcrumbs[] = [
                      'path'  => $pathtodate,
                      'name'  => $directory,
                  ];
          }
  
          return $breadcrumbs;
      }
code: protected function process_breadcrumbs($path) {
          // Process breadcrumb trail.
          // Note: Dropbox is case insensitive.
          // Without performing an additional API call, it isn't possible to get the path_display.
          // As a result, the path here is the path_lower.
          $breadcrumbs = [
              [
                  'path' => '/',
                  'name' => get_string('dropbox', 'repository_dropbox'),
              ],
          ];
  
          $path = rtrim($path, '/');
          $directories = explode('/', $path);
          $pathtodate = '';
          foreach ($directories as $directory) {
              if ($directory === '') {
                  continue;
              }
              $pathtodate .= '/' . $directory;
              $breadcrumbs[] = [
                      'path'  => $pathtodate,
                      'name'  => $directory,
                  ];
          }
  
          return $breadcrumbs;
      }
code_tokens: protected function process_breadcrumbs ( $ path ) { // Process breadcrumb trail. // Note: Dropbox is case insensitive. // Without performing an additional API call, it isn't possible to get the path_display. // As a result, the path here is the path_lower. $ breadcrumbs = [ [ 'path' => '/' , 'name' => get_string ( 'dropbox' , 'repository_dropbox' ) , ] , ] ; $ path = rtrim ( $ path , '/' ) ; $ directories = explode ( '/' , $ path ) ; $ pathtodate = '' ; foreach ( $ directories as $ directory ) { if ( $ directory === '' ) { continue ; } $ pathtodate .= '/' . $ directory ; $ breadcrumbs [ ] = [ 'path' => $ pathtodate , 'name' => $ directory , ] ; } return $ breadcrumbs ; }
docstring: Process the breadcrumbs for a listing.
  
  @param   string      $path       The path to create breadcrumbs for
  @return  array
docstring_tokens: Process the breadcrumbs for a listing .