src/Sulu/Bundle/SnippetBundle/Snippet/DefaultSnippetManager.php
private function checkTemplate($document, $type)
    {
        $area = $this->areas->get($type);

        return $document->getStructureType() === $area['template'];
    }
private function checkTemplate($document, $type)
    {
        $area = $this->areas->get($type);

        return $document->getStructureType() === $area['template'];
    }
private function checkTemplate ( $ document , $ type ) { $ area = $ this -> areas -> get ( $ type ) ; return $ document -> getStructureType ( ) === $ area [ 'template' ] ; }
Check template.

@param SnippetDocument $document
@param string $type

@return bool
Check template .