public function checkForConfiguration(Twig_NodeInterface $node = null, $target, $withLoop) {
if (null === $node) {
return;
}
foreach ($node as $n) {
if ($n instanceof Twig_Node_For) {
if ($target === $n
->getNode('value_target')
->getAttribute('name')) {
return $withLoop == $n
->getAttribute('with_loop');
}
}
$ret = $this
->checkForConfiguration($n, $target, $withLoop);
if (null !== $ret) {
return $ret;
}
}
}