diff --git a/core/lib/Drupal/Core/Render/theme.api.php b/core/lib/Drupal/Core/Render/theme.api.php index 25f853d..1e9c276 100644 --- a/core/lib/Drupal/Core/Render/theme.api.php +++ b/core/lib/Drupal/Core/Render/theme.api.php @@ -512,7 +512,7 @@ function hook_form_system_theme_settings_alter(&$form, \Drupal\Core\Form\FormSta * preprocess variables for a specific theme hook, whether implemented as a * template or function. * - * For more detailed information, see + * For more detailed information, see the * @link themeable Theme system overview topic @endlink. * * @param $variables @@ -561,7 +561,7 @@ function hook_preprocess(&$variables, $hook) { * hook. It should only be used if a module needs to override or add to the * theme preprocessing for a theme hook it didn't define. * - * For more detailed information, see + * For more detailed information, see the * @link themeable Theme system overview topic @endlink. * * @param $variables diff --git a/core/lib/Drupal/Core/Utility/ThemeRegistry.php b/core/lib/Drupal/Core/Utility/ThemeRegistry.php index 1a3336e..c5e6055 100644 --- a/core/lib/Drupal/Core/Utility/ThemeRegistry.php +++ b/core/lib/Drupal/Core/Utility/ThemeRegistry.php @@ -24,6 +24,15 @@ class ThemeRegistry extends CacheCollector implements DestructableInterface { /** + * 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. + */ + protected $persistable; + + /** * The complete theme registry array. */ protected $completeRegistry;