5 * Install, update and uninstall functions for the Settings Tray module.
8 use Drupal\Core\Cache\Cache;
11 * Implements hook_install().
13 function outside_in_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']);
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();