diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php index a72cc3f..10d0d7c 100644 --- a/core/modules/system/system.api.php +++ b/core/modules/system/system.api.php @@ -1192,7 +1192,7 @@ function hook_template_preprocess_default_variables_alter(&$variables) { } /** - * Declares a template file extension to be used with a theme engine. + * Declare a template file extension to be used with a theme engine. * * This hook is used in a theme engine implementation in the format of * ENGINE_extension(). @@ -1206,20 +1206,15 @@ function hook_extension() { } /** - * Renders a template using the theme engine. - * - * This hook is used in a theme engine implementation in the format of - * ENGINE_render_template(). It gets passed a template name and an array of - * variables and returns a string containing the rendered template. + * Render a template using the theme engine. * * @param string $template_file - * The relative path to the template to be rendered including its extension in - * the format 'path/to/TEMPLATE_NAME.EXT'. The path should be relative to the - * Drupal root directory. + * The path (relative to the Drupal root directory) to the template to be + * rendered including its extension in the format 'path/to/TEMPLATE_NAME.EXT'. * @param array $variables * A keyed array of variables that are available for composing the output. The * theme engine is responsible for passing all the variables to the template. - * Depending on the code in the template, all or just a subset of those + * Depending on the code in the template, all or just a subset of the * variables might be used in the template. * * @return string