core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php | 4 ---- core/modules/tracker/src/Tests/TrackerTest.php | 4 ++-- core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php b/core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php index 16e2622..bd3937b 100644 --- a/core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php +++ b/core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php @@ -7,12 +7,8 @@ namespace Drupal\Core\Render; -use Drupal\Component\Utility\SafeMarkup; -use Drupal\Component\Utility\UrlHelper; -use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\CacheFactoryInterface; use Drupal\Core\Cache\Context\CacheContextsManager; -use Drupal\Core\Template\Attribute; use Symfony\Component\HttpFoundation\RequestStack; /** diff --git a/core/modules/tracker/src/Tests/TrackerTest.php b/core/modules/tracker/src/Tests/TrackerTest.php index 9dd2a2e..9a1f084 100644 --- a/core/modules/tracker/src/Tests/TrackerTest.php +++ b/core/modules/tracker/src/Tests/TrackerTest.php @@ -90,7 +90,7 @@ function testTrackerAll() { // Assert cache tags for the action/tabs blocks, visible node, and node list // cache tag. $expected_tags = Cache::mergeTags($published->getCacheTags(), $published->getOwner()->getCacheTags()); - // Because of 'user.permissions' cache context is being optimized away. + // Because the 'user.permissions' cache context is being optimized away. $role_tags = []; foreach ($this->user->getRoles() as $rid) { $role_tags[] = "config:user.role.$rid"; @@ -176,7 +176,7 @@ function testTrackerUser() { $expected_tags = Cache::mergeTags($my_published->getCacheTags(), $my_published->getOwner()->getCacheTags()); $expected_tags = Cache::mergeTags($expected_tags, $other_published_my_comment->getCacheTags()); $expected_tags = Cache::mergeTags($expected_tags, $other_published_my_comment->getOwner()->getCacheTags()); - // Because of 'user.permissions' cache context is being optimized away. + // Because the 'user.permissions' cache context is being optimized away. $role_tags = []; foreach ($this->user->getRoles() as $rid) { $role_tags[] = "config:user.role.$rid"; diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php index 59a072b..e2bc876 100644 --- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php +++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php @@ -688,7 +688,7 @@ public function testCacheableParent($test_element, $args, array $expected_placeh } // The normally cacheable edge case: a high-invalidation frequency cache tag // is bubbled from a #lazy_builder callback for an uncacheable placeholder. - // The element continaing the uncacheable placeholder has cache keys set, + // The element containing the uncacheable placeholder has cache keys set, // and also has the bubbled cache tags. elseif ($edge_case_a7_uncacheable) { $cached_element = $cached->data;