private function validateFlavorName(DropFolderFile $file, $assetParamsList) { foreach ($assetParamsList as $assetParams) { if ($assetParams->getSystemName() == $file->getParsedFlavor()) { return true; } } $this->setFileError($file, DropFolderFileStatus::ERROR_HANDLING, DropFolderFileErrorCode::FLAVOR_NOT_FOUND, DropFolderPlugin::FLAVOR_NOT_FOUND_MESSAGE); return false; }