Skip to main content
2 of 3
Mentioned Twig namespaces
leymannx
  • 18.8k
  • 6
  • 72
  • 126

I didn't know of Twig namespacing just until now. But what always worked for extends and includes is to point to the template you want to extend/include directly, with the path starting from Drupal web root. So in your case it needs to say:

{% extends "core/themes/bartik/templates/block.html.twig" %}
leymannx
  • 18.8k
  • 6
  • 72
  • 126