Loading core/modules/contextual/contextual.api.php +6 −5 Original line number Diff line number Diff line Loading @@ -13,10 +13,11 @@ /** * Alter a contextual links element before it is rendered. * * This hook is invoked by contextual_pre_render_links(). The renderable array * of #type 'contextual_links', containing the entire contextual links data that * is passed in by reference. Further links may be added or existing links can * be altered. * This hook is invoked by * \Drupal\contextual\Element\ContextualLinks::preRenderLinks(). The renderable * array of #type 'contextual_links', containing the entire contextual links * data that is passed in by reference. Further links may be added or existing * links can be altered. * * @param $element * A renderable array representing the contextual links. Loading @@ -28,7 +29,7 @@ * * @see hook_contextual_links_alter() * @see hook_contextual_links_plugins_alter() * @see contextual_pre_render_links() * @see \Drupal\contextual\Element\ContextualLinks::preRenderLinks() */ function hook_contextual_links_view_alter(&$element, $items) { // Add another class to all contextual link lists to facilitate custom Loading Loading
core/modules/contextual/contextual.api.php +6 −5 Original line number Diff line number Diff line Loading @@ -13,10 +13,11 @@ /** * Alter a contextual links element before it is rendered. * * This hook is invoked by contextual_pre_render_links(). The renderable array * of #type 'contextual_links', containing the entire contextual links data that * is passed in by reference. Further links may be added or existing links can * be altered. * This hook is invoked by * \Drupal\contextual\Element\ContextualLinks::preRenderLinks(). The renderable * array of #type 'contextual_links', containing the entire contextual links * data that is passed in by reference. Further links may be added or existing * links can be altered. * * @param $element * A renderable array representing the contextual links. Loading @@ -28,7 +29,7 @@ * * @see hook_contextual_links_alter() * @see hook_contextual_links_plugins_alter() * @see contextual_pre_render_links() * @see \Drupal\contextual\Element\ContextualLinks::preRenderLinks() */ function hook_contextual_links_view_alter(&$element, $items) { // Add another class to all contextual link lists to facilitate custom Loading