comparison core/lib/Drupal/Core/Render/theme.api.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children c2387f117808
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
611 * '#theme' => 'node__article' is called, then hook_theme_suggestions_node() 611 * '#theme' => 'node__article' is called, then hook_theme_suggestions_node()
612 * will be invoked, not hook_theme_suggestions_node__article(). The specific 612 * will be invoked, not hook_theme_suggestions_node__article(). The specific
613 * hook called (in this case 'node__article') is available in 613 * hook called (in this case 'node__article') is available in
614 * $variables['theme_hook_original']. 614 * $variables['theme_hook_original'].
615 * 615 *
616 * Implementations of this hook must be placed in *.module or *.theme files, or
617 * must otherwise make sure that the hook implementation is available at
618 * any given time.
619 *
616 * @todo Add @code sample. 620 * @todo Add @code sample.
617 * 621 *
618 * @param array $variables 622 * @param array $variables
619 * An array of variables passed to the theme hook. Note that this hook is 623 * An array of variables passed to the theme hook. Note that this hook is
620 * invoked before any preprocessing. 624 * invoked before any preprocessing.
691 * HOOK is the least-specific version of the hook being called. For example, if 695 * HOOK is the least-specific version of the hook being called. For example, if
692 * '#theme' => 'node__article' is called, then node_theme_suggestions_node() 696 * '#theme' => 'node__article' is called, then node_theme_suggestions_node()
693 * will be invoked, not node_theme_suggestions_node__article(). The specific 697 * will be invoked, not node_theme_suggestions_node__article(). The specific
694 * hook called (in this case 'node__article') is available in 698 * hook called (in this case 'node__article') is available in
695 * $variables['theme_hook_original']. 699 * $variables['theme_hook_original'].
700 *
701 * Implementations of this hook must be placed in *.module or *.theme files, or
702 * must otherwise make sure that the hook implementation is available at
703 * any given time.
696 * 704 *
697 * @todo Add @code sample. 705 * @todo Add @code sample.
698 * 706 *
699 * @param array $suggestions 707 * @param array $suggestions
700 * An array of theme suggestions. 708 * An array of theme suggestions.