function panels_get_legacy_state in Panels 8.3
Same name and namespace in other branches
- 6.3 panels.module \panels_get_legacy_state()
- 7.3 panels.module \panels_get_legacy_state()
Gateway to the PanelsLegacyState class/object, which does all legacy state checks and provides information about the cause of legacy states as needed.
Return value
PanelsLegacyState $legacy
Related topics
File
- ./
panels.module, line 950 - panels.module
Code
function panels_get_legacy_state() {
static $legacy = NULL;
if (!isset($legacy)) {
ctools_include('legacy', 'panels');
$legacy = new PanelsLegacyState();
}
return $legacy;
}