getKernel(); if ($node instanceof CodeNode) { $node->setLanguage(trim($data)); $node->setOptions($options); } if ($variable !== '') { $environment = $parser->getEnvironment(); $environment->setVariable($variable, $node); } else { $document = $parser->getDocument(); $document->addNode($node); } } public function wantCode(): bool { return true; } }