src/Controller/PageAdminController.php
protected function makeSnapshot(PageInterface $page)
    {
        if (!$this->admin->isGranted('PUBLISH', $page)) {
            return;
        }

        /** @var $pageHelper \Networking\InitCmsBundle\Helper\PageHelper */
        $pageHelper = $this->get('networking_init_cms.helper.page_helper');

        $pageHelper->makePageSnapshot($page);
    }
protected function makeSnapshot(PageInterface $page)
    {
        if (!$this->admin->isGranted('PUBLISH', $page)) {
            return;
        }

        /** @var $pageHelper \Networking\InitCmsBundle\Helper\PageHelper */
        $pageHelper = $this->get('networking_init_cms.helper.page_helper');

        $pageHelper->makePageSnapshot($page);
    }
protected function makeSnapshot ( PageInterface $ page ) { if ( ! $ this -> admin -> isGranted ( 'PUBLISH' , $ page ) ) { return ; } /** @var $pageHelper \Networking\InitCmsBundle\Helper\PageHelper */ $ pageHelper = $ this -> get ( 'networking_init_cms.helper.page_helper' ) ; $ pageHelper -> makePageSnapshot ( $ page ) ; }
Create a snapshot of a published page.

@param PageInterface $page
Create a snapshot of a published page .