diff --git a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php index 5fe3fda..e51a433 100644 --- a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php @@ -38,7 +38,7 @@ class PathSubscriber implements EventSubscriberInterface { * Constructs a new PathSubscriber instance. * * @param \Drupal\Core\Path\AliasManagerInterface $alias_manager - * THe alias manager. + * The alias manager. * @param \Drupal\Core\Path\CurrentPathStack $current_path * The current path. */ diff --git a/core/modules/system/src/EventSubscriber/ConfigCacheTag.php b/core/modules/system/src/EventSubscriber/ConfigCacheTag.php index 1ece46d..8201993 100644 --- a/core/modules/system/src/EventSubscriber/ConfigCacheTag.php +++ b/core/modules/system/src/EventSubscriber/ConfigCacheTag.php @@ -53,9 +53,9 @@ public function __construct(ThemeHandlerInterface $theme_handler, CacheTagsInval * The Event to process. */ public function onSave(ConfigCrudEvent $event) { - // Changing the site settings may mean a change to the front page route. - // Additionally changing the system site settings invalidates the render - // cache - since site name and similar may be part of rendered items. + // Changing the site settings may mean a different route is selected for the + // front page. Additionally changing the system site settings invalidates + // the render cache - since site name etc. may be part of rendered items. if ($event->getConfig()->getName() === 'system.site') { $this->cacheTagsInvalidator->invalidateTags(['route_match', 'rendered']); } diff --git a/core/modules/system/src/Tests/Routing/RouteProviderTest.php b/core/modules/system/src/Tests/Routing/RouteProviderTest.php index 96c5100..2a1670e 100644 --- a/core/modules/system/src/Tests/Routing/RouteProviderTest.php +++ b/core/modules/system/src/Tests/Routing/RouteProviderTest.php @@ -96,7 +96,6 @@ public function containerBuild(ContainerBuilder $container) { } } - protected function tearDown() { $this->fixtures->dropTables(Database::getConnection());