Updated to use correct view API syntax to get displays to loop through, check whether it accepts attachments, and set the displays options array.
Closes #3404471