/**
* Queries the associated storage whether the entity data should be saved or not
*
* @see Storage::shouldBeSaved()
*
* @param string $entityName Determines the storage
* @param array $data Data passed to VersionPress\Storages\Storage::shouldBeSaved()
* @return bool
*/
public function shouldBeSaved($entityName, $data)
{
$storage = $this->storageFactory->getStorage($entityName);
if ($storage === null) {
return false;
}
return $storage->shouldBeSaved($data);
}