Skip to content

Do not use _addContent in controllers #699

@ihor-sviziev

Description

@ihor-sviziev

From Magento 1.x we have a lot controllers that use _addContent. This method is fires after running loadLayout. As result we haven't ability to use action directive from layout files to use some manipulations, as example change template file for block (described there).

I propose mark this method as deprecated and replace same places to layout updates.

List of this places:
https://github.com/magento/magento2/search?q=_addContent

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentimprovement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions