public ConfigFactory::onConfigDelete(ConfigCrudEvent $event)
Removes stale static cache entries when configuration is deleted.
\Drupal\Core\Config\ConfigCrudEvent $event: The configuration event.
public function onConfigDelete(ConfigCrudEvent $event) { // Ensure that the static cache does not contain deleted configuration. foreach ($this->getConfigCacheKeys($event->getConfig()->getName()) as $cache_key) { unset($this->cache[$cache_key]); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigFactory.php/function/ConfigFactory::onConfigDelete/8.1.x