Mercurial > hg > isophonics-drupal-site
comparison core/modules/settings_tray/settings_tray.install @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * Install, update and uninstall functions for the Settings Tray module. | |
6 */ | |
7 | |
8 use Drupal\Core\Cache\Cache; | |
9 | |
10 /** | |
11 * Implements hook_install(). | |
12 */ | |
13 function settings_tray_install() { | |
14 // This module affects the rendering of blocks and of the page. | |
15 // @todo Remove in https://www.drupal.org/node/2783791. | |
16 Cache::invalidateTags(['rendered']); | |
17 | |
18 // \Drupal\Core\Menu\ContextualLinkManager caches per-group definitions | |
19 // without associating the cache tag that would allow them to be cleared | |
20 // by its clearCachedDefinitions() implementation that is automatically | |
21 // invoked when modules are installed. | |
22 // @todo Remove when that is fixed in https://www.drupal.org/node/2773591. | |
23 \Drupal::service('cache.discovery')->deleteAll(); | |
24 } |