Skip to content

[Backport] use "Module_Name::template/path" format instead of using template/path#15106

Merged
magento-engcom-team merged 1 commit intomagento:2.1-developfrom
sergiy-v:feature/2.1-magento-review-renderer-path
May 10, 2018
Merged

[Backport] use "Module_Name::template/path" format instead of using template/path#15106
magento-engcom-team merged 1 commit intomagento:2.1-developfrom
sergiy-v:feature/2.1-magento-review-renderer-path

Conversation

@sergiy-v
Copy link
Copy Markdown
Contributor

@sergiy-v sergiy-v commented May 9, 2018

in Block class to ensure extensibility of the class. not doing so causes invalid template errors after extending the block class via preference

Original PR: #14946.

Description

Often third party modules override core block classes. If the source block classes reference a template without specifying module name like "Vendor_Module::template_path" then block render fails with "nvalid template file: " error.

Manual testing scenarios

Overide the \Magento\Review\Block\Product\ReviewRenderer Block in your custom module via di preference. Leave your custom class empty.
Product details should work.

@sergiy-v sergiy-v requested a review from rogyar May 9, 2018 12:25
@magento-engcom-team magento-engcom-team added this to the May 2018 milestone May 9, 2018
@magento-engcom-team magento-engcom-team added Release Line: 2.1 Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: accept labels May 9, 2018
@magento-engcom-team magento-engcom-team merged commit 20993c1 into magento:2.1-develop May 10, 2018
@magento-engcom-team
Copy link
Copy Markdown
Contributor

Hi @sergiy-v. Thank you for your contribution.
Changes from your Pull Request will be available with the upcoming 2.1.15 release.

@sergiy-v sergiy-v deleted the feature/2.1-magento-review-renderer-path branch February 28, 2020 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants