public function load()
    {
        if (false === $this->isLoaded) {
            $this->getEventManager()->trigger(
                __FUNCTION__ . '.pre',
                $this,
                []
            );

            $this->generate();
            $this->injectBlocks();
            $this->isLoaded = true;

            $this->getEventManager()->trigger(
                __FUNCTION__ . '.post',
                $this,
                []
            );
        }
        return $this;
    }
public function load()
    {
        if (false === $this->isLoaded) {
            $this->getEventManager()->trigger(
                __FUNCTION__ . '.pre',
                $this,
                []
            );

            $this->generate();
            $this->injectBlocks();
            $this->isLoaded = true;

            $this->getEventManager()->trigger(
                __FUNCTION__ . '.post',
                $this,
                []
            );
        }
        return $this;
    }
public function load ( ) { if ( false === $ this -> isLoaded ) { $ this -> getEventManager ( ) -> trigger ( __FUNCTION__ . '.pre' , $ this , [ ] ) ; $ this -> generate ( ) ; $ this -> injectBlocks ( ) ; $ this -> isLoaded = true ; $ this -> getEventManager ( ) -> trigger ( __FUNCTION__ . '.post' , $ this , [ ] ) ; } return $ this ; }
inject blocks into the root view model

@return LayoutInterface
inject blocks into the root view model