diff --git a/core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php b/core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php index 59f4804..76c22fb 100644 --- a/core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php +++ b/core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php @@ -5,7 +5,7 @@ use Drupal\Core\Cache\CacheableMetadata; /** - * Defines the path-based breadcrumb cache context service. + * Defines a cache context service for path parents. * * Cache context ID: 'url.path.parent'. * @@ -18,7 +18,7 @@ class PathParentCacheContext extends RequestStackCacheContextBase implements Cac * {@inheritdoc} */ public static function getLabel() { - return t('Path parent cache context'); + return t('Parent path'); } /** diff --git a/core/tests/Drupal/FunctionalTests/Breadcrumb/Breadcrumb404Test.php b/core/tests/Drupal/FunctionalTests/Breadcrumb/Breadcrumb404Test.php index a0a3701..3b1338e 100644 --- a/core/tests/Drupal/FunctionalTests/Breadcrumb/Breadcrumb404Test.php +++ b/core/tests/Drupal/FunctionalTests/Breadcrumb/Breadcrumb404Test.php @@ -22,7 +22,7 @@ class Breadcrumb404Test extends BrowserTestBase { public function testBreadcrumbOn404Pages() { $this->placeBlock('system_breadcrumb_block', ['id' => 'breadcrumb']); - // Prone the cache first. + // Prime the cache first. $this->drupalGet('/not-found-1'); $base_count = count($this->getBreadcrumbCacheEntries()); diff --git a/core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php b/core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php index 523dd8a..dc62c5e 100644 --- a/core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php +++ b/core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php @@ -29,7 +29,7 @@ public function testgetContext($original_path, $context) { } /** - * Provides a list of paths and expected cache contexts. + * Provides a list of paths and expected cache contexts. */ public function providerTestGetContext() { return [