After leaving Manchester City, an Ilkay Gundogan Barcelona contract has been agreed for two years with an option to extend further.