src/View/Helper/DocumentHelper.php
public function beforeLayout(Event $event, $layoutFile)
    {
        $pluginEvent = Plugin::getData('Core', 'View.beforeLayout');
        if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('View.beforeLayout')) {
            call_user_func_array($pluginEvent->find(0), [$this->_View, $event, $layoutFile]);
        }
    }
public function beforeLayout(Event $event, $layoutFile)
    {
        $pluginEvent = Plugin::getData('Core', 'View.beforeLayout');
        if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('View.beforeLayout')) {
            call_user_func_array($pluginEvent->find(0), [$this->_View, $event, $layoutFile]);
        }
    }
public function beforeLayout ( Event $ event , $ layoutFile ) { $ pluginEvent = Plugin :: getData ( 'Core' , 'View.beforeLayout' ) ; if ( is_callable ( $ pluginEvent -> find ( 0 ) ) && Plugin :: hasManifestEvent ( 'View.beforeLayout' ) ) { call_user_func_array ( $ pluginEvent -> find ( 0 ) , [ $ this -> _View , $ event , $ layoutFile ] ) ; } }
Is called before layout rendering starts. Receives the layout filename as an argument.

@param   Event $event
@param   string $layoutFile
@return  void

@throws  \JBZoo\Utils\Exception
Is called before layout rendering starts . Receives the layout filename as an argument .