src/View/Helper/DocumentHelper.php
public function beforeRenderFile(Event $event, $viewFile)
    {
        $pluginEvent = Plugin::getData('Core', 'View.beforeRenderFile');
        if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('View.beforeRenderFile')) {
            call_user_func_array($pluginEvent->find(0), [$this->_View, $event, $viewFile]);
        }
    }
public function beforeRenderFile(Event $event, $viewFile)
    {
        $pluginEvent = Plugin::getData('Core', 'View.beforeRenderFile');
        if (is_callable($pluginEvent->find(0)) && Plugin::hasManifestEvent('View.beforeRenderFile')) {
            call_user_func_array($pluginEvent->find(0), [$this->_View, $event, $viewFile]);
        }
    }
public function beforeRenderFile ( Event $ event , $ viewFile ) { $ pluginEvent = Plugin :: getData ( 'Core' , 'View.beforeRenderFile' ) ; if ( is_callable ( $ pluginEvent -> find ( 0 ) ) && Plugin :: hasManifestEvent ( 'View.beforeRenderFile' ) ) { call_user_func_array ( $ pluginEvent -> find ( 0 ) , [ $ this -> _View , $ event , $ viewFile ] ) ; } }
Is called before each view file is rendered. This includes elements, views, parent views and layouts.

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

@throws  \JBZoo\Utils\Exception
Is called before each view file is rendered . This includes elements views parent views and layouts .