Verified Commit 7029b697 authored by Jess's avatar Jess
Browse files

Issue #3393955 by quietone, xjm, smustgrave: Correct $suggestions...

Issue #3393955 by quietone, xjm, smustgrave: Correct $suggestions documentation in hook_theme_suggestions_alter()

(cherry picked from commit c85f28b7)
parent 4d236cf2
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -685,6 +685,7 @@ function hook_theme_suggestions_HOOK(array $variables) {
 *
 * In the following example, we provide an alternative template suggestion to
 * node and taxonomy term templates based on the user being logged in.
 *
 * @code
 * function MYMODULE_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
 *   if (\Drupal::currentUser()->isAuthenticated() && in_array($hook, array('node', 'taxonomy_term'))) {
@@ -694,8 +695,9 @@ function hook_theme_suggestions_HOOK(array $variables) {
 *
 * @endcode
 *
 * @param array $suggestions
 *   An array of alternate, more specific names for template files.
 * @param array &$suggestions
 *   An array of alternate, more specific names for template files, passed by
 *   reference.
 * @param array $variables
 *   An array of variables passed to the theme hook. Note that this hook is
 *   invoked before any variable preprocessing.