diglin/missing-block-name

This package is abandoned and no longer maintained. No replacement package was suggested.

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

1.0.3 2018-03-06 22:42 UTC

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