diff -u b/core/lib/Drupal/Core/Render/theme.api.php b/core/lib/Drupal/Core/Render/theme.api.php --- b/core/lib/Drupal/Core/Render/theme.api.php +++ b/core/lib/Drupal/Core/Render/theme.api.php @@ -489,8 +489,8 @@ * preprocess variables for a specific theme hook, whether implemented as a * template or function. * - * For more detailed information, see @link themeable Theme system overview - * topic @endlink. + * For more detailed information, see @link themeable Theme system overview topic + * @endlink. * * @param $variables * The variables array (modify in place). @@ -538,8 +538,8 @@ * 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 @link themeable Theme system overview - * topic @endlink. + * For more detailed information, see @link themeable Theme system overview topic + * @endlink. * * @param $variables * The variables array (modify in place). diff -u b/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php --- b/core/lib/Drupal/Core/Theme/Registry.php +++ b/core/lib/Drupal/Core/Theme/Registry.php @@ -389,7 +389,7 @@ * in hook_theme(). If there is more than one implementation and * 'render element' is not specified in a later one, then the previous * definition is kept. - * - 'preprocess functions': See the 'theme.manager' service for detailed + * - See the @link themeable [link text] @endlink topic for detailed * documentation. * @param string $name * The name of the module, theme engine, base theme engine, theme or base diff -u b/core/lib/Drupal/Core/Theme/ThemeManager.php b/core/lib/Drupal/Core/Theme/ThemeManager.php --- b/core/lib/Drupal/Core/Theme/ThemeManager.php +++ b/core/lib/Drupal/Core/Theme/ThemeManager.php @@ -142,7 +142,7 @@ // full theme registry to work with, and therefore cannot process the theme // request properly. See also \Drupal\Core\Theme\Registry::get(). if (!$this->moduleHandler->isLoaded() && !defined('MAINTENANCE_MODE')) { - throw new \Exception(t('_theme() may not be called until all modules are loaded.')); + throw new \Exception('The theme implementations may not be rendered until all modules are loaded.'); } $theme_registry = $this->themeRegistry->getRuntime(); @@ -182,7 +182,7 @@ // There is no theme implementation for the hook passed. Return FALSE so // the function calling // \Drupal\Core\Theme\ThemeManagerInterface::render() can differentiate - // between a hook that exists and renders an empty string and a hook + // between a hook that exists and renders an empty string, and a hook // that is not implemented. return FALSE; } @@ -234,8 +234,8 @@ // Invoke hook_theme_suggestions_HOOK(). $suggestions = $this->moduleHandler->invokeAll('theme_suggestions_' . $base_theme_hook, array($variables)); - // If theme implementation was invoked with a direct theme suggestion like - // '#theme' => 'node__article', add it to the suggestions array before + // If the theme implementation was invoked with a direct theme suggestion + // like '#theme' => 'node__article', add it to the suggestions array before // invoking suggestion alter hooks. if (isset($info['base hook'])) { $suggestions[] = $hook; @@ -251,10 +251,10 @@ $this->alter($hooks, $suggestions, $variables, $base_theme_hook); // Check if each suggestion exists in the theme registry, and if so, - // use it instead of the base hook. For example, a - // function may use '#theme' => 'node', but a module can add 'node__article' - // as a suggestion via hook_theme_suggestions_HOOK_alter(), enabling a theme - // to have an alternate template file for article nodes. + // use it instead of the base hook. For example, a function may use + // '#theme' => 'node', but a module can add 'node__article' as a suggestion + // via hook_theme_suggestions_HOOK_alter(), enabling a theme to have + // an alternate template file for article nodes. foreach (array_reverse($suggestions) as $suggestion) { if ($theme_registry->has($suggestion)) { $info = $theme_registry->get($suggestion); diff -u b/core/lib/Drupal/Core/Utility/ThemeRegistry.php b/core/lib/Drupal/Core/Utility/ThemeRegistry.php --- b/core/lib/Drupal/Core/Utility/ThemeRegistry.php +++ b/core/lib/Drupal/Core/Utility/ThemeRegistry.php @@ -24,15 +24,6 @@ class ThemeRegistry extends CacheCollector implements DestructableInterface { /** - * Whether the partial registry can be persisted to the cache. - * - * This is only allowed if the request method is GET. - * \Drupal\Core\Theme\ThemeManagerInterface::render() should be very rarely - * called on POST requests and this avoids polluting the runtime cache. - */ - protected $persistable; - - /** * The complete theme registry array. */ protected $completeRegistry; diff -u b/core/modules/image/image.module b/core/modules/image/image.module --- b/core/modules/image/image.module +++ b/core/modules/image/image.module @@ -103,8 +103,9 @@ // 'image_style' to pass a meaningful value for the alt variable. // - http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.8 // - http://www.w3.org/TR/xhtml1/dtds.html - // - http://dev.w3.org/html5/spec/Overview.html#alt - // The title attribute is optional in all cases, so it is omitted by default. + // - http://dev.w3.org/html5/spec/Overview.html#alt + // The title attribute is optional in all cases, so it is omitted by + // default. 'variables' => array( 'style_name' => NULL, 'uri' => NULL, diff -u b/core/modules/system/tests/modules/theme_test/theme_test.module b/core/modules/system/tests/modules/theme_test/theme_test.module --- b/core/modules/system/tests/modules/theme_test/theme_test.module +++ b/core/modules/system/tests/modules/theme_test/theme_test.module @@ -95,7 +95,7 @@ } /** - * Theme function for testing ThemeManager::render('theme_test_function_template_override'). + * Theme function for testing theme_test_function_template_override. */ function theme_theme_test_function_template_override($variables) { return 'theme_test_function_template_override test failed.';