ThemeRegistry::$persistable

Same name in other branches
  1. 9 core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::persistable
  2. 8.9.x core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::persistable
  3. 10 core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::persistable
  4. 11.x core/lib/Drupal/Core/Utility/ThemeRegistry.php \Drupal\Core\Utility\ThemeRegistry::persistable

Whether the partial registry can be persisted to the cache.

This is only allowed if all modules and the request method is GET. theme() should be very rarely called on POST requests and this avoids polluting the runtime cache.

Type: persistable

File

includes/theme.inc, line 374

Class

ThemeRegistry
Builds the run-time theme registry.

Code

protected $persistable;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.