Skip to content

Instantly share code, notes, and snippets.

@kriswallsmith
Created August 18, 2011 21:34
Show Gist options
  • Save kriswallsmith/1155296 to your computer and use it in GitHub Desktop.
Save kriswallsmith/1155296 to your computer and use it in GitHub Desktop.
CmsBlockNodeVisitor getBlockName
private function getBlockName(\Twig_NodeInterface $node, \Twig_Environment $env)
{
if ($node instanceof \Twig_Node_Expression_Function) {
if ('cms_block' == $node->getNode('name')->getAttribute('name')) {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment