Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you rely on the display_context array that is filled in commerce_product_reference_entity_view
, it could be useful to also have the view_mode and/or the langcode of the entity being displayed.
Currently, you only have the entity_type + the entity
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce-add-view-mode-product-reference-1787728-2.patch | 674 bytes | jsacksick |
#1 | commerce-add-view-mode-product-reference-1787728-1.patch | 664 bytes | jsacksick |
Comments
Comment #1
jsacksick CreditAttribution: jsacksick commentedPatch attached
Comment #2
jsacksick CreditAttribution: jsacksick commentedComment #3
rszrama CreditAttribution: rszrama commentedYep, this is a great feature. Thanks, Jonathan!
On review, I made two quick changes:
Commit: http://drupalcode.org/project/commerce.git/commitdiff/0ec3b5d