0

I'm getting an error Twig_Error_Syntax: Unknown "drupal_view" function when I try embedding my views to my twig template {{ drupal_view('newsdesk', 'block_1') }}.

I have already installed twig_tweak, twig_extensions and also installed twig_extensions via composer.

I'm not sure what else I'm missing, I've already also cleared the cache during installation

1 Answer 1

3

That's an error you would get if the twig_tweak module is not enabled, are you sure you have enabled it? If you have multiple clones of your site, make sure you're on the right one.

2
  • Both modules are enabled/activated which is very confusing. No errors where displayed during the installation
    – clestcruz
    Commented Jun 28, 2018 at 6:43
  • @clestcruz uninstall both modules and then only enable twig_teak.
    – No Sssweat
    Commented Jun 28, 2018 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.