Loading core/lib/Drupal/Core/Asset/AssetResolver.php +6 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,9 @@ protected function getLibrariesToLoad(AttachedAssetsInterface $assets) { * {@inheritdoc} */ public function getCssAssets(AttachedAssetsInterface $assets, $optimize, LanguageInterface $language = NULL) { if (!$assets->getLibraries()) { return []; } if (!isset($language)) { $language = $this->languageManager->getCurrentLanguage(); } Loading Loading @@ -217,6 +220,9 @@ protected function getJsSettingsAssets(AttachedAssetsInterface $assets) { * {@inheritdoc} */ public function getJsAssets(AttachedAssetsInterface $assets, $optimize, LanguageInterface $language = NULL) { if (!$assets->getLibraries() && !$assets->getSettings()) { return [[], []]; } if (!isset($language)) { $language = $this->languageManager->getCurrentLanguage(); } Loading core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryAuthenticatedPerformanceTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -50,11 +50,11 @@ public function testFrontPageAuthenticatedWarmCache(): void { $recorded_queries = $performance_data->getQueries(); $this->assertSame($expected_queries, $recorded_queries); $this->assertSame(4, $performance_data->getQueryCount()); $this->assertSame(48, $performance_data->getCacheGetCount()); $this->assertSame(43, $performance_data->getCacheGetCount()); $this->assertSame(0, $performance_data->getCacheSetCount()); $this->assertSame(0, $performance_data->getCacheDeleteCount()); $this->assertSame(0, $performance_data->getCacheTagChecksumCount()); $this->assertSame(16, $performance_data->getCacheTagIsValidCount()); $this->assertSame(11, $performance_data->getCacheTagIsValidCount()); $this->assertSame(0, $performance_data->getCacheTagInvalidationCount()); } Loading core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -221,11 +221,11 @@ public function testLogin(): void { $recorded_queries = $performance_data->getQueries(); $this->assertSame($expected_queries, $recorded_queries); $this->assertSame(15, $performance_data->getQueryCount()); $this->assertSame(67, $performance_data->getCacheGetCount()); $this->assertSame(60, $performance_data->getCacheGetCount()); $this->assertSame(1, $performance_data->getCacheSetCount()); $this->assertSame(1, $performance_data->getCacheDeleteCount()); $this->assertSame(1, $performance_data->getCacheTagChecksumCount()); $this->assertSame(30, $performance_data->getCacheTagIsValidCount()); $this->assertSame(23, $performance_data->getCacheTagIsValidCount()); $this->assertSame(0, $performance_data->getCacheTagInvalidationCount()); } Loading Loading @@ -275,11 +275,11 @@ public function testLoginBlock(): void { $recorded_queries = $performance_data->getQueries(); $this->assertSame($expected_queries, $recorded_queries); $this->assertSame(17, $performance_data->getQueryCount()); $this->assertSame(110, $performance_data->getCacheGetCount()); $this->assertSame(107, $performance_data->getCacheGetCount()); $this->assertSame(1, $performance_data->getCacheSetCount()); $this->assertSame(1, $performance_data->getCacheDeleteCount()); $this->assertSame(1, $performance_data->getCacheTagChecksumCount()); $this->assertSame(46, $performance_data->getCacheTagIsValidCount()); $this->assertSame(43, $performance_data->getCacheTagIsValidCount()); $this->assertSame(0, $performance_data->getCacheTagInvalidationCount()); } Loading Loading
core/lib/Drupal/Core/Asset/AssetResolver.php +6 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,9 @@ protected function getLibrariesToLoad(AttachedAssetsInterface $assets) { * {@inheritdoc} */ public function getCssAssets(AttachedAssetsInterface $assets, $optimize, LanguageInterface $language = NULL) { if (!$assets->getLibraries()) { return []; } if (!isset($language)) { $language = $this->languageManager->getCurrentLanguage(); } Loading Loading @@ -217,6 +220,9 @@ protected function getJsSettingsAssets(AttachedAssetsInterface $assets) { * {@inheritdoc} */ public function getJsAssets(AttachedAssetsInterface $assets, $optimize, LanguageInterface $language = NULL) { if (!$assets->getLibraries() && !$assets->getSettings()) { return [[], []]; } if (!isset($language)) { $language = $this->languageManager->getCurrentLanguage(); } Loading
core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryAuthenticatedPerformanceTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -50,11 +50,11 @@ public function testFrontPageAuthenticatedWarmCache(): void { $recorded_queries = $performance_data->getQueries(); $this->assertSame($expected_queries, $recorded_queries); $this->assertSame(4, $performance_data->getQueryCount()); $this->assertSame(48, $performance_data->getCacheGetCount()); $this->assertSame(43, $performance_data->getCacheGetCount()); $this->assertSame(0, $performance_data->getCacheSetCount()); $this->assertSame(0, $performance_data->getCacheDeleteCount()); $this->assertSame(0, $performance_data->getCacheTagChecksumCount()); $this->assertSame(16, $performance_data->getCacheTagIsValidCount()); $this->assertSame(11, $performance_data->getCacheTagIsValidCount()); $this->assertSame(0, $performance_data->getCacheTagInvalidationCount()); } Loading
core/profiles/standard/tests/src/FunctionalJavascript/StandardPerformanceTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -221,11 +221,11 @@ public function testLogin(): void { $recorded_queries = $performance_data->getQueries(); $this->assertSame($expected_queries, $recorded_queries); $this->assertSame(15, $performance_data->getQueryCount()); $this->assertSame(67, $performance_data->getCacheGetCount()); $this->assertSame(60, $performance_data->getCacheGetCount()); $this->assertSame(1, $performance_data->getCacheSetCount()); $this->assertSame(1, $performance_data->getCacheDeleteCount()); $this->assertSame(1, $performance_data->getCacheTagChecksumCount()); $this->assertSame(30, $performance_data->getCacheTagIsValidCount()); $this->assertSame(23, $performance_data->getCacheTagIsValidCount()); $this->assertSame(0, $performance_data->getCacheTagInvalidationCount()); } Loading Loading @@ -275,11 +275,11 @@ public function testLoginBlock(): void { $recorded_queries = $performance_data->getQueries(); $this->assertSame($expected_queries, $recorded_queries); $this->assertSame(17, $performance_data->getQueryCount()); $this->assertSame(110, $performance_data->getCacheGetCount()); $this->assertSame(107, $performance_data->getCacheGetCount()); $this->assertSame(1, $performance_data->getCacheSetCount()); $this->assertSame(1, $performance_data->getCacheDeleteCount()); $this->assertSame(1, $performance_data->getCacheTagChecksumCount()); $this->assertSame(46, $performance_data->getCacheTagIsValidCount()); $this->assertSame(43, $performance_data->getCacheTagIsValidCount()); $this->assertSame(0, $performance_data->getCacheTagInvalidationCount()); } Loading