cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

Feature request from mage2pro, posted on GitHub Oct 27, 2015

There is an internal field \Magento/Framework/View/Layout/Builder::$isBuilt https://github.com/magento/magento2/blob/ffa02d82c6344c76ea6de8b50d9612b3200ea2c7/lib/internal/Magen... Need a public method.

There is an event layout_generate_blocks_after: https://github.com/magento/magento2/blob/ffa02d82c6344c76ea6de8b50d9612b3200ea2c7/lib/internal/Magen...

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

1 Comment
apiuser
New Member

Comment from andimov, posted on GitHub Aug 16, 2016

@mage2pro Could you please add the description of steps, actual result and expected result to this ticket?