protected function _buildFilename(EntityInterface $entity, array $options = []) {
		$filename = $entity->id;
		if ($options['stripUuid'] === true) {
			$filename = $this->stripDashes($filename);
		}
		if (!empty($options['fileSuffix'])) {
			$filename = $filename . $options['fileSuffix'];
		}
		if ($options['preserveExtension'] === true) {
			$filename = $filename . '.' . $entity['extension'];
		}
		if (!empty($options['filePrefix'])) {
			$filename = $options['filePrefix'] . $filename;
		}

		return $filename;
	}
protected function _buildFilename(EntityInterface $entity, array $options = []) {
		$filename = $entity->id;
		if ($options['stripUuid'] === true) {
			$filename = $this->stripDashes($filename);
		}
		if (!empty($options['fileSuffix'])) {
			$filename = $filename . $options['fileSuffix'];
		}
		if ($options['preserveExtension'] === true) {
			$filename = $filename . '.' . $entity['extension'];
		}
		if (!empty($options['filePrefix'])) {
			$filename = $options['filePrefix'] . $filename;
		}

		return $filename;
	}
protected function _buildFilename ( EntityInterface $ entity , array $ options = [ ] ) { $ filename = $ entity -> id ; if ( $ options [ 'stripUuid' ] === true ) { $ filename = $ this -> stripDashes ( $ filename ) ; } if ( ! empty ( $ options [ 'fileSuffix' ] ) ) { $ filename = $ filename . $ options [ 'fileSuffix' ] ; } if ( $ options [ 'preserveExtension' ] === true ) { $ filename = $ filename . '.' . $ entity [ 'extension' ] ; } if ( ! empty ( $ options [ 'filePrefix' ] ) ) { $ filename = $ options [ 'filePrefix' ] . $ filename ; } return $ filename ; }
Used to build a completely customized filename.

The default behavior is to use the UUID from the entities primary key to
generate a filename based of the UUID that gets the dashes stripped and the
extension added if you configured the path builder to preserve it.

The filePrefix and fileSuffix options are also supported.

@param \Cake\Datasource\EntityInterface $entity
@param array $options
@return string
Used to build a completely customized filename .