Support multiple view modes patch from Entity Print module

Created on 20 May 2022, over 2 years ago
Updated 4 August 2023, over 1 year ago

There is an issue raised in the entity print module that provides support for multiple view modes, rather than the default PDF view mode provided by the module. https://www.drupal.org/project/entity_print/issues/2884806 Support multiple view modes for a given library Needs review
If using patch #31 from this issue, we get an error in commerce_order as the method signature for OrderRenderer::render has too few arguments.

In a patch attached to this issue I add in the other method parameter $custom_view_mode but also alter the render method to use this view mode if the view mode provided is any other than the default pdf view mode. This could be useful if we wish to print details of the order from other view modes, and wish to use templates other than the provided receipt template.

In any case, the purpose of this issue is to match the changes introduced in Support multiple view modes for a given library Needs review .

Feature request
Status

Needs review

Version

2.28

Component

Order

Created by

🇬🇧United Kingdom mjmorley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024