Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

node-edit-form.html.twig

Same filename in this branch
  1. 11.1.x core/profiles/demo_umami/themes/umami/templates/classy/content-edit/node-edit-form.html.twig
  2. 11.1.x core/themes/stable9/templates/content-edit/node-edit-form.html.twig
  3. 11.1.x core/themes/claro/templates/node-edit-form.html.twig
  4. 11.1.x core/modules/node/templates/node-edit-form.html.twig

Theme override for a node edit form.

Two column template for the node add/edit form.

This template will be used when a node edit form specifies 'node_edit_form' as its #theme callback. Otherwise, by default, node add/edit forms will be themed by form.html.twig.

Available variables:

  • form: The node add/edit form.

File

core/themes/starterkit_theme/templates/content-edit/node-edit-form.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a node edit form.
  5. *
  6. * Two column template for the node add/edit form.
  7. *
  8. * This template will be used when a node edit form specifies 'node_edit_form'
  9. * as its #theme callback. Otherwise, by default, node add/edit forms will be
  10. * themed by form.html.twig.
  11. *
  12. * Available variables:
  13. * - form: The node add/edit form.
  14. */
  15. #}
  16. <div class="layout-node-form clearfix">
  17. <div class="layout-region layout-region-node-main">
  18. {{ form|without('advanced', 'actions') }}
  19. </div>
  20. <div class="layout-region layout-region-node-secondary">
  21. {{ form.advanced }}
  22. </div>
  23. <div class="layout-region layout-region-node-footer">
  24. {{ form.actions }}
  25. </div>
  26. </div>

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal