Skip to content

Need a standard way to detect whether the layout has already been built #2198

@dmitrii-fediuk

Description

@dmitrii-fediuk

There is an internal field \Magento/Framework/View/Layout/Builder::$isBuilt


Need a public method.

There is an event layout_generate_blocks_after:

'layout_generate_blocks_after',

But it is inconvenient to listen for the event while an extension just need to get the current layout state: built or not.

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