|
|
@ -1333,7 +1333,7 @@ class TwigExtension extends AbstractExtension { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function phpFilter(array $context, $code) { |
|
|
|
public function phpFilter(array $context, $code) { |
|
|
|
// Make Twig variables available in PHP code. |
|
|
|
// Make Twig variables available in PHP code. |
|
|
|
extract($context); |
|
|
|
extract($context, EXTR_SKIP); |
|
|
|
ob_start(); |
|
|
|
ob_start(); |
|
|
|
// phpcs:ignore Drupal.Functions.DiscouragedFunctions.Discouraged |
|
|
|
// phpcs:ignore Drupal.Functions.DiscouragedFunctions.Discouraged |
|
|
|
print eval($code); |
|
|
|
print eval($code); |
|
|
|