protected function _getImageVersionData(EntityInterface $entity, array $options = []) {
		$versionData = (array)Configure::read('FileStorage.imageSizes.' . $entity->get('model'));
		if (isset($options['originalVersion'])) {
			$versionData['original'] = $options['originalVersion'];
		} else {
			Configure::write('FileStorage.imageSizes.' . $entity->get('model') . '.original', []);
			$versionData['original'] = [];
		}

		$versionData['original'] = isset($options['originalVersion']) ? $options['originalVersion'] : 'original';

		return $versionData;
	}
protected function _getImageVersionData(EntityInterface $entity, array $options = []) {
		$versionData = (array)Configure::read('FileStorage.imageSizes.' . $entity->get('model'));
		if (isset($options['originalVersion'])) {
			$versionData['original'] = $options['originalVersion'];
		} else {
			Configure::write('FileStorage.imageSizes.' . $entity->get('model') . '.original', []);
			$versionData['original'] = [];
		}

		$versionData['original'] = isset($options['originalVersion']) ? $options['originalVersion'] : 'original';

		return $versionData;
	}
protected function _getImageVersionData ( EntityInterface $ entity , array $ options = [ ] ) { $ versionData = ( array ) Configure :: read ( 'FileStorage.imageSizes.' . $ entity -> get ( 'model' ) ) ; if ( isset ( $ options [ 'originalVersion' ] ) ) { $ versionData [ 'original' ] = $ options [ 'originalVersion' ] ; } else { Configure :: write ( 'FileStorage.imageSizes.' . $ entity -> get ( 'model' ) . '.original' , [ ] ) ; $ versionData [ 'original' ] = [ ] ; } $ versionData [ 'original' ] = isset ( $ options [ 'originalVersion' ] ) ? $ options [ 'originalVersion' ] : 'original' ; return $ versionData ; }
Gets the image version data used to generate the versions.

@param \Cake\Datasource\EntityInterface $entity An ImageStorage database record.
@param array $options Options for the version.
@return array Version data information as array.
Gets the image version data used to generate the versions .