public function UltimenuSkin::clearCachedDefinitions in Ultimenu 8.2
Clear the cache definitions.
Parameters
bool $all: A flag to check if the clearing is affection all about Ultimenu.
Overrides UltimenuSkinInterface::clearCachedDefinitions
File
- src/
UltimenuSkin.php, line 194
Class
- UltimenuSkin
- Provides Ultimenu skins utility methods.
Namespace
Drupal\ultimenuCode
public function clearCachedDefinitions($all = FALSE) {
// Invalidate the theme cache to update ultimenu region-based theme.
$this->themeHandler
->refreshInfo();
if ($all) {
// Clear the skins cache.
$this->skins = NULL;
// Invalidate the block cache to update ultimenu-based derivatives.
$this->blockManager
->clearCachedDefinitions();
}
}