show

show(&$element) Shows a hidden element for later rendering. You can also use render($element), which shows the element while rendering it. The first time render() or drupal_render() is called on an element tree, as each element in the tree is rendered, it is marked with a #printed flag and the rendered children of the element are cached. Subsequent calls to render() or drupal_render() will not traverse the child tree of this element again: they will just use the cached children. So if you w

ShowButtonsCommand

Provides an AJAX command for showing the save and cancel buttons. This command is implemented in Drupal.AjaxCommands.prototype.viewsShowButtons. Hierarchy class \Drupal\views\Ajax\ShowButtonsCommand implements CommandInterface File core/modules/views/src/Ajax/ShowButtonsCommand.php, line 12 Namespace Drupal\views\Ajax Members Name Modifiers Type Description ShowButtonsCommand::$changed protected property Whether the view has been changed. ShowButtonsCommand::render p

shortcut_themes_installed

shortcut_themes_installed($theme_list) Implements hook_themes_installed(). File core/modules/shortcut/shortcut.module, line 433 Allows users to manage customizable lists of shortcut links. Code function shortcut_themes_installed($theme_list) { if (in_array('seven', $theme_list)) { // Theme settings are not configuration entities and cannot depend on modules // so to set a module-specific setting, we need to set it with logic. if (\Drupal::moduleHandler()->moduleExists('shortc

shortcut_toolbar

shortcut_toolbar() Implements hook_toolbar(). File core/modules/shortcut/shortcut.module, line 372 Allows users to manage customizable lists of shortcut links. Code function shortcut_toolbar() { $user = \Drupal::currentUser(); $items = []; $items['shortcuts'] = [ '#cache' => [ 'contexts' => [ // Cacheable per user, because each user can have their own shortcut // set, even if they cannot create or select a shortcut set, because // an administrato

shortcut_set_title_exists

shortcut_set_title_exists($title) Check to see if a shortcut set with the given title already exists. Parameters $title: Human-readable name of the shortcut set to check. Return value TRUE if a shortcut set with that title exists; FALSE otherwise. Deprecated in Drupal 8.x, will be removed before Drupal 9.0. File core/modules/shortcut/shortcut.module, line 234 Allows users to manage customizable lists of shortcut links. Code function shortcut_set_title_exists($title) { $sets = ShortcutS

shortcut_set_switch_access

shortcut_set_switch_access($account = NULL) Access callback for switching the shortcut set assigned to a user account. Parameters object $account: (optional) The user account whose shortcuts will be switched. If not set, permissions will be checked for switching the logged-in user's own shortcut set. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/shortcut/shortcut.module, line 82 Allows users to manage customizable lists of shortcut links. Code f

shortcut_set_unassign_user

shortcut_set_unassign_user($account) Unassigns a user from any shortcut set they may have been assigned to. The user will go back to using whatever default set applies. Parameters $account: A user account that will be removed from the shortcut set assignment. Return value TRUE if the user was previously assigned to a shortcut set and has been successfully removed from it. FALSE if the user was already not assigned to any set. Deprecated in Drupal 8.x, will be removed before Drupal 9.0. Use

shortcut_set_assign_user

shortcut_set_assign_user($shortcut_set, $account) Assigns a user to a particular shortcut set. Parameters $shortcut_set Drupal\shortcut\Entity\Shortcut: An object representing the shortcut set. $account: A user account that will be assigned to use the set. Deprecated in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal::entityManager()->getStorage('shortcut_set')->assignUser(). File core/modules/shortcut/shortcut.module, line 124 Allows users to manage customizable lists of s

shortcut_set_edit_access

shortcut_set_edit_access(ShortcutSetInterface $shortcut_set = NULL) Access callback for editing a shortcut set. Parameters Drupal\shortcut\ShortcutSetInterface $shortcut_set: (optional) The shortcut set to be edited. If not set, the current user's shortcut set will be used. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/shortcut/shortcut.module, line 57 Allows users to manage customizable lists of shortcut links. Code function shortcut_set_edit_a

shortcut_preprocess_block

shortcut_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/shortcut/shortcut.module, line 294 Allows users to manage customizable lists of shortcut links. Code function shortcut_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'shortcut') { $variables['attributes']['role'] = 'navigation'; } }