#3417231 Coding standards and replace deprecated functions
requested to merge issue/entityreference_live_preview-3417231:3417231-coding-standards-and into 8.x-1.x
Fixed coding standards and replaced necessary deprecated functions.
Fixed coding standards and replaced necessary deprecated functions.