annotate core/modules/settings_tray/settings_tray.install @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 /**
Chris@0 4 * @file
Chris@0 5 * Install, update and uninstall functions for the Settings Tray module.
Chris@0 6 */
Chris@0 7
Chris@0 8 use Drupal\Core\Cache\Cache;
Chris@0 9
Chris@0 10 /**
Chris@0 11 * Implements hook_install().
Chris@0 12 */
Chris@0 13 function settings_tray_install() {
Chris@0 14 // This module affects the rendering of blocks and of the page.
Chris@0 15 // @todo Remove in https://www.drupal.org/node/2783791.
Chris@0 16 Cache::invalidateTags(['rendered']);
Chris@0 17
Chris@0 18 // \Drupal\Core\Menu\ContextualLinkManager caches per-group definitions
Chris@0 19 // without associating the cache tag that would allow them to be cleared
Chris@0 20 // by its clearCachedDefinitions() implementation that is automatically
Chris@0 21 // invoked when modules are installed.
Chris@0 22 // @todo Remove when that is fixed in https://www.drupal.org/node/2773591.
Chris@0 23 \Drupal::service('cache.discovery')->deleteAll();
Chris@0 24 }