Skip to content

Allow Arbitary Block Objects #1912

@Flyingmana

Description

@Flyingmana

while we already have an Interface for Blocks (BlockInterface), there is still a place, which enforces usage of the abstract Block class (\Magento\Framework\View\Element\AbstractBlock).

https://github.com/magento/magento2/blob/develop/lib/internal/Magento/Framework/View/Layout/Generator/Block.php#L261-L265

While its not a problem to extend from there, I think it is not necessary for all Blocks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions