Verified Commit ea99cad0 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 b9f1f9a8
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -668,6 +668,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'))) {
@@ -677,8 +678,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.