Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / outside_in / outside_in.install
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 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']);
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 }