original_string: protected function get_files_target_path($component, $filearea, $itemid) : string {
  
          // We do not need to include the component because we organise things by context.
          $parts = ['_files', $filearea];
  
          if (!empty($itemid)) {
              $parts[] = $itemid;
          }
  
          return implode(DIRECTORY_SEPARATOR, $parts);
      }
code: protected function get_files_target_path($component, $filearea, $itemid) : string {
  
          // We do not need to include the component because we organise things by context.
          $parts = ['_files', $filearea];
  
          if (!empty($itemid)) {
              $parts[] = $itemid;
          }
  
          return implode(DIRECTORY_SEPARATOR, $parts);
      }
code_tokens: protected function get_files_target_path ( $ component , $ filearea , $ itemid ) : string { // We do not need to include the component because we organise things by context. $ parts = [ '_files' , $ filearea ] ; if ( ! empty ( $ itemid ) ) { $ parts [ ] = $ itemid ; } return implode ( DIRECTORY_SEPARATOR , $ parts ) ; }
docstring: Get a path within a subcontext where exported files should be written to.
  
  @param string $component The name of the component that the files belong to.
  @param string $filearea The filearea within that component.
  @param string $itemid Which item those files belong to.
  @return string The path
docstring_tokens: Get a path within a subcontext where exported files should be written to .