public function filename(EntityInterface $entity, array $options = []) {
		$config = array_merge($this->getConfig(), $options);
		if ($config['preserveFilename'] === true) {
			return $this->_preserveFilename($entity, $config);
		}

		return $this->_buildFilename($entity, $config);
	}
public function filename(EntityInterface $entity, array $options = []) {
		$config = array_merge($this->getConfig(), $options);
		if ($config['preserveFilename'] === true) {
			return $this->_preserveFilename($entity, $config);
		}

		return $this->_buildFilename($entity, $config);
	}
public function filename ( EntityInterface $ entity , array $ options = [ ] ) { $ config = array_merge ( $ this -> getConfig ( ) , $ options ) ; if ( $ config [ 'preserveFilename' ] === true ) { return $ this -> _preserveFilename ( $ entity , $ config ) ; } return $ this -> _buildFilename ( $ entity , $ config ) ; }
Builds the filename of under which the data gets saved in the storage adapter.

@param \Cake\Datasource\EntityInterface $entity
@param array $options
@return string
Builds the filename of under which the data gets saved in the storage adapter .