diglin / missing-block-name
Magento 2 Module to fix issue related to block having an alias but no block name allowing template overwrites
Installs: 665
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:magento2-module
Requires
- php: ~5.5.0|~5.6.0|~7.0|~7.1
- magento/framework: ^100.1.0|^101.0.0
This package is not auto-updated.
Last update: 2020-01-18 10:01:16 UTC
README
Fix issue with block having an alias but no name. It allows developer to overwrite template more easily
Related to pull request I did here: https://github.com/magento/magento2/pull/7272
Instructions
When a block use only an alias "as", a name to this block will be defined with a combination of the class name of the block and the alias. For example, the block Magento\Sales\Block\Adminhtml\Items\Renderer\DefaultRenderer
has just the alias as="default"
, the block name will be magento_sales_block_adminhtml_items_renderer_defaultrenderer_default