From ba83d073bae43bc7c180cd17a1ef14f2db11a6d5 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu, 5 May 2016 09:09:30 +0100
Subject: [PATCH] Issue #2712405 by leolando.tan, jhodgdon: more detail needed
 for hook_theme() 'variables' property

(cherry picked from commit 44f8f8f114ddb8e51ad284d124b3a7fe97615623)
---
 core/lib/Drupal/Core/Render/theme.api.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/lib/Drupal/Core/Render/theme.api.php b/core/lib/Drupal/Core/Render/theme.api.php
index 19a7038d7393..d6daa722c79c 100644
--- a/core/lib/Drupal/Core/Render/theme.api.php
+++ b/core/lib/Drupal/Core/Render/theme.api.php
@@ -1110,7 +1110,8 @@ function hook_page_bottom(array &$page_bottom) {
  *     Template implementations receive each array key as a variable in the
  *     template file (so they must be legal PHP/Twig variable names). Function
  *     implementations are passed the variables in a single $variables function
- *     argument.
+ *     argument. If you are using these variables in a render array, prefix the
+ *     variable names defined here with a #.
  *   - render element: Used for render element items only: the name of the
  *     renderable element or element tree to pass to the theme function. This
  *     name is used as the name of the variable that holds the renderable
-- 
GitLab