diff -u b/core/includes/common.inc b/core/includes/common.inc --- b/core/includes/common.inc +++ b/core/includes/common.inc @@ -947,11 +947,11 @@ * it is marked with a #printed flag and the rendered children of * the element are cached. Subsequent calls to render() or * \Drupal::service('renderer')->render() will not traverse the - * child tree of this element - * again: they will just use the cached children. So if you want to hide an - * element, be sure to call hide() on the element before its parent tree is - * rendered for the first time, as it will have no effect on subsequent - * renderings of the parent tree. + * child tree of this element again: they will just use the cached + * children. So if you want to hide an element, be sure to call hide() + * on the element before its parent tree is rendered for the first + * time, as it will have no effect on subsequent renderings of the + * parent tree. * * @param $element * The element to be hidden. diff -u b/core/lib/Drupal/Core/Entity/entity.api.php b/core/lib/Drupal/Core/Entity/entity.api.php --- b/core/lib/Drupal/Core/Entity/entity.api.php +++ b/core/lib/Drupal/Core/Entity/entity.api.php @@ -1487,7 +1487,7 @@ /** * Alter entity renderable values before cache checking in - *\Drupal::service('renderer')->render(). + * \Drupal::service('renderer')->render(). * * The values in the #cache key of the renderable array are used to determine if * a cache entry exists for the entity's rendered output. Ideally only values diff -u b/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php --- b/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php @@ -18,10 +18,10 @@ * Subscriber that wraps controllers, to handle early rendering. * * When controllers call \Drupal::service('renderer')->render() - * (RendererInterface::render()) outside - * of a render context, we call that "early rendering". Controllers should - * return only render arrays, but we cannot prevent controllers from doing early - * rendering. The problem with early rendering is that the bubbleable metadata + * (RendererInterface::render()) outside of a render context, we call + * that "early rendering". Controllers should return only render + * arrays, but we cannot prevent controllers from doing early rendering. + * The problem with early rendering is that the bubbleable metadata * (cacheability & attachments) are lost. * * This can lead to broken pages (missing assets), stale pages (missing cache diff -u b/core/lib/Drupal/Core/Form/FormBuilderInterface.php b/core/lib/Drupal/Core/Form/FormBuilderInterface.php --- b/core/lib/Drupal/Core/Form/FormBuilderInterface.php +++ b/core/lib/Drupal/Core/Form/FormBuilderInterface.php @@ -246,9 +246,9 @@ * two are self::doValidateForm() (invoked via self::validateForm() and used * to invoke validation logic for each element) and * \Drupal::service('renderer')->render() (for rendering each element). - * Each of these three pipelines provides ample - * opportunity for modules to customize what happens. For example, during this - * function's life cycle, the following functions get called for each element: + * Each of these three pipelines provides ample opportunity for modules to + * customize what happens. For example, during this function's life cycle, + * the following functions get called for each element: * - $element['#value_callback']: A callable that implements how user input is * mapped to an element's #value property. This defaults to a function named * 'form_type_TYPE_value' where TYPE is $element['#type']. diff -u b/core/modules/block/block.api.php b/core/modules/block/block.api.php --- b/core/modules/block/block.api.php +++ b/core/modules/block/block.api.php @@ -73,8 +73,8 @@ * the structured content array, it may use this hook to add a #post_render * callback. Alternatively, it could also implement hook_preprocess_HOOK() for * block.html.twig. See \Drupal::service('renderer')->render() - * documentation or the - * @link themeable Default theme implementations topic @endlink for details. + * documentation or the @link themeable Default theme implementations topic + * @endlink for details. * * In addition to hook_block_view_alter(), which is called for all blocks, there * is hook_block_view_BASE_BLOCK_ID_alter(), which can be used to target a diff -u b/core/modules/image/src/Tests/ImageDimensionsTest.php b/core/modules/image/src/Tests/ImageDimensionsTest.php --- b/core/modules/image/src/Tests/ImageDimensionsTest.php +++ b/core/modules/image/src/Tests/ImageDimensionsTest.php @@ -278,12 +278,10 @@ * Render an image style element. * * \Drupal::service('renderer')->render() alters the passed $variables array - * by adding a new key - * '#printed' => TRUE. This prevents next call to re-render the element. We - * wrap \Drupal::service('renderer')->render() in a helper protected method - * and pass each time a - * fresh array so that $variables won't get altered and the element is - * re-rendered each time. + * by adding a new key '#printed' => TRUE. This prevents next call to re-render + * the element. We wrap \Drupal::service('renderer')->render() in a helper + * protected method and pass each time a fresh array so that $variables won't + * get altered and the element is re-rendered each time. */ protected function getImageTag($variables) { return str_replace("\n", NULL, \Drupal::service('renderer')->renderRoot($variables)); diff -u b/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php --- b/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -215,9 +215,9 @@ * Entities postpone the composition of their renderable arrays to #pre_render * functions in order to maximize cache efficacy. This means that the full * renderable array for an entity is constructed in - * \Drupal::service('renderer')->render(). Some - * tests require the complete renderable array for an entity outside of the - * drupal_render process in order to verify the presence of specific values. + * \Drupal::service('renderer')->render(). Some tests require the complete + * renderable array for an entity outside of the drupal_render process in + * order to verify the presence of specific values. * This method isolates the steps in the render process that produce an * entity's renderable array. * diff -u b/core/themes/seven/seven.theme b/core/themes/seven/seven.theme --- b/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -27,8 +27,7 @@ * * Use preprocess hook to set #attached to child elements * because they will be processed by Twig and - * \Drupal::service('renderer')->render will - * be invoked. + * \Drupal::service('renderer')->render will be invoked. */ function seven_preprocess_menu_local_tasks(&$variables) { if (!empty($variables['primary'])) {