protected function _getVersionData($event) {
		$data = $event->getData();
		if (isset($data['versions'])) {
			$versions = $data['versions'];
		} elseif (isset($data['operations'])) {
			$versions = array_keys($data['operations']);
		} else {
			$versions = [];
		}

		return $versions;
	}
protected function _getVersionData($event) {
		$data = $event->getData();
		if (isset($data['versions'])) {
			$versions = $data['versions'];
		} elseif (isset($data['operations'])) {
			$versions = array_keys($data['operations']);
		} else {
			$versions = [];
		}

		return $versions;
	}
protected function _getVersionData ( $ event ) { $ data = $ event -> getData ( ) ; if ( isset ( $ data [ 'versions' ] ) ) { $ versions = $ data [ 'versions' ] ; } elseif ( isset ( $ data [ 'operations' ] ) ) { $ versions = array_keys ( $ data [ 'operations' ] ) ; } else { $ versions = [ ] ; } return $ versions ; }
This method retrieves version names from event data.

For backward compatibility version names are resolved from operations data keys because in old
ImageProcessingListener operations were required in event data. ImageProcessingTrait need only
version names so operations can be read from the config.

@param \Cake\Event\Event $event
@return array
This method retrieves version names from event data .