By catch on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
11.4.x
Introduced in version:
11.4.0
Issue links:
Description:
ExtensionList ::getList() and ::exists() methods now have a new, optional, $skip_cache = FALSE argument. When this argument is passed, both persistent and static caching will be bypassed and the list of extensions will be recalculated from the file-system. Note that as well as bypassing the cache, this also does not update the cache either.
This can be used in situations that previously would have invalidated the cache in order to get a full list of available extensions:
Before:
// Get all available themes.
$themes = $this->themeExtensionList->reset()->getList();
After:
// Get all available themes.
$themes = $this->themeExtensionList->getList(TRUE);
Impacts:
Module developers