original_string: public function requestPath(Request $request, $path = '/:plugin/:prefix/:controller/:action')
      {
          $plugin = empty($request['plugin']) ? null : Inflector::camelize($request['plugin']) . '/';
          $prefix = empty($request->params['prefix']) ? '' : Inflector::camelize($request->params['prefix']) . '/';
          $path = str_replace(
              [':controller', ':action', ':plugin/', ':prefix/'],
              [Inflector::camelize($request['controller']), $request['action'], $plugin, $prefix],
              $path
          );
          $path = str_replace('//', '/', $path);
  
          return trim($path, '/');
      }
code: public function requestPath(Request $request, $path = '/:plugin/:prefix/:controller/:action')
      {
          $plugin = empty($request['plugin']) ? null : Inflector::camelize($request['plugin']) . '/';
          $prefix = empty($request->params['prefix']) ? '' : Inflector::camelize($request->params['prefix']) . '/';
          $path = str_replace(
              [':controller', ':action', ':plugin/', ':prefix/'],
              [Inflector::camelize($request['controller']), $request['action'], $plugin, $prefix],
              $path
          );
          $path = str_replace('//', '/', $path);
  
          return trim($path, '/');
      }
code_tokens: public function requestPath ( Request $ request , $ path = '/:plugin/:prefix/:controller/:action' ) { $ plugin = empty ( $ request [ 'plugin' ] ) ? null : Inflector :: camelize ( $ request [ 'plugin' ] ) . '/' ; $ prefix = empty ( $ request -> params [ 'prefix' ] ) ? '' : Inflector :: camelize ( $ request -> params [ 'prefix' ] ) . '/' ; $ path = str_replace ( [ ':controller' , ':action' , ':plugin/' , ':prefix/' ] , [ Inflector :: camelize ( $ request [ 'controller' ] ) , $ request [ 'action' ] , $ plugin , $ prefix ] , $ path ) ; $ path = str_replace ( '//' , '/' , $ path ) ; return trim ( $ path , '/' ) ; }
docstring: Gets an ACO path for current request.
  
  @param \Cake\Network\Request $request Request instance
  @param string $path Pattern
  @return string
docstring_tokens: Gets an ACO path for current request .