ENGINE_render_template() and ENGINE_extension() are undocumented

Created on 4 November 2011, about 13 years ago
Updated 26 January 2025, about 23 hours ago

Reading through the following code was the only way I could see to learn about theme engines.

http://drupalcode.org/project/drupal.git/blob/refs/heads/8.x:/core/theme...
https://github.com/damz/mustache-drupal/blob/master/mustache.engine
http://drupalcode.org/project/drupal.git/blob/refs/heads/8.x:/core/inclu...

From what I see, a theme engine requires implementing two hooks, ENGINE_init() and ENGINE_theme(). They are documented as hook_init() and hook_theme, and mentioned on the docs for theme().

But ENGINE_extension and ENGINE_render_template also exist, aren't available to themes or modules, and aren't documented at all.

πŸ“Œ Task
Status

Fixed

Version

8.0 ⚰️

Component

documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024