protected function _path(EntityInterface $entity, $path, array $config) {
		if ($config['modelFolder'] === true) {
			$path .= $entity->model . DS;
		}
		if ($config['randomPath'] === true) {
			$path .= $this->randomPath($entity->id);
		}
		if (is_string($config['randomPath'])) {
			$path .= $this->randomPath($entity->id, 3, $config['randomPath']);
		}
		// uuidFolder for backward compatibility
		if ($config['uuidFolder'] === true || $config['idFolder'] === true) {
			$path .= $this->stripDashes($entity->id) . DS;
		}

		return $path;
	}
protected function _path(EntityInterface $entity, $path, array $config) {
		if ($config['modelFolder'] === true) {
			$path .= $entity->model . DS;
		}
		if ($config['randomPath'] === true) {
			$path .= $this->randomPath($entity->id);
		}
		if (is_string($config['randomPath'])) {
			$path .= $this->randomPath($entity->id, 3, $config['randomPath']);
		}
		// uuidFolder for backward compatibility
		if ($config['uuidFolder'] === true || $config['idFolder'] === true) {
			$path .= $this->stripDashes($entity->id) . DS;
		}

		return $path;
	}
protected function _path ( EntityInterface $ entity , $ path , array $ config ) { if ( $ config [ 'modelFolder' ] === true ) { $ path .= $ entity -> model . DS ; } if ( $ config [ 'randomPath' ] === true ) { $ path .= $ this -> randomPath ( $ entity -> id ) ; } if ( is_string ( $ config [ 'randomPath' ] ) ) { $ path .= $ this -> randomPath ( $ entity -> id , 3 , $ config [ 'randomPath' ] ) ; } // uuidFolder for backward compatibility if ( $ config [ 'uuidFolder' ] === true || $ config [ 'idFolder' ] === true ) { $ path .= $ this -> stripDashes ( $ entity -> id ) . DS ; } return $ path ; }
Builds a path.

@param \Cake\Datasource\EntityInterface $entity
@param string $path
@param array $config
@return string
Builds a path .