/dports/www/drupal8/drupal-8.9.20/core/lib/Drupal/Core/Render/ |
H A D | RenderCache.php | 231 …f (array_diff($redirect_cacheability_updated->getCacheContexts(), $redirect_cacheability->getCache… 239 'contexts' => $redirect_cacheability_updated->getCacheContexts(), 256 … if (array_diff($redirect_cacheability_updated->getCacheContexts(), $data['#cache']['contexts'])) { 261 'contexts' => $redirect_cacheability_updated->getCacheContexts(), 266 $data['#cache']['contexts'] = $redirect_cacheability_updated->getCacheContexts();
|
/dports/www/drupal9/drupal-9.2.10/core/lib/Drupal/Core/Render/ |
H A D | RenderCache.php | 241 …f (array_diff($redirect_cacheability_updated->getCacheContexts(), $redirect_cacheability->getCache… 249 'contexts' => $redirect_cacheability_updated->getCacheContexts(), 266 … if (array_diff($redirect_cacheability_updated->getCacheContexts(), $data['#cache']['contexts'])) { 271 'contexts' => $redirect_cacheability_updated->getCacheContexts(), 276 $data['#cache']['contexts'] = $redirect_cacheability_updated->getCacheContexts();
|
/dports/www/drupal8/drupal-8.9.20/core/modules/forum/tests/src/Unit/Breadcrumb/ |
H A D | ForumListingBreadcrumbBuilderTest.php | 131 $prophecy->getCacheContexts()->willReturn([]); 139 $prophecy->getCacheContexts()->willReturn([]); 156 $prophecy->getCacheContexts()->willReturn([]); 197 $prophecy->getCacheContexts()->willReturn([]); 216 $this->assertEquals(['route'], $breadcrumb->getCacheContexts()); 229 $this->assertEquals(['route'], $breadcrumb->getCacheContexts());
|
H A D | ForumNodeBreadcrumbBuilderTest.php | 139 $prophecy->getCacheContexts()->willReturn([]); 147 $prophecy->getCacheContexts()->willReturn([]); 166 $prophecy->getCacheContexts()->willReturn([]); 223 $this->assertEquals(['route'], $breadcrumb->getCacheContexts()); 236 $this->assertEquals(['route'], $breadcrumb->getCacheContexts());
|
/dports/www/drupal9/drupal-9.2.10/core/modules/forum/tests/src/Unit/Breadcrumb/ |
H A D | ForumListingBreadcrumbBuilderTest.php | 132 $prophecy->getCacheContexts()->willReturn([]); 140 $prophecy->getCacheContexts()->willReturn([]); 157 $prophecy->getCacheContexts()->willReturn([]); 198 $prophecy->getCacheContexts()->willReturn([]); 217 $this->assertEquals(['route'], $breadcrumb->getCacheContexts()); 230 $this->assertEquals(['route'], $breadcrumb->getCacheContexts());
|
H A D | ForumNodeBreadcrumbBuilderTest.php | 140 $prophecy->getCacheContexts()->willReturn([]); 148 $prophecy->getCacheContexts()->willReturn([]); 167 $prophecy->getCacheContexts()->willReturn([]); 224 $this->assertEquals(['route'], $breadcrumb->getCacheContexts()); 237 $this->assertEquals(['route'], $breadcrumb->getCacheContexts());
|
/dports/www/drupal8/drupal-8.9.20/core/modules/views/src/Plugin/Block/ |
H A D | ViewsExposedFilterBlock.php | 22 public function getCacheContexts() { function in Drupal\\views\\Plugin\\Block\\ViewsExposedFilterBlock 23 $contexts = $this->view->display_handler->getCacheMetadata()->getCacheContexts(); 24 return Cache::mergeContexts(parent::getCacheContexts(), $contexts);
|
/dports/www/drupal9/drupal-9.2.10/core/modules/views/src/Plugin/Block/ |
H A D | ViewsExposedFilterBlock.php | 22 public function getCacheContexts() { function in Drupal\\views\\Plugin\\Block\\ViewsExposedFilterBlock 23 $contexts = $this->view->display_handler->getCacheMetadata()->getCacheContexts(); 24 return Cache::mergeContexts(parent::getCacheContexts(), $contexts);
|
/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/Tests/Core/Utility/ |
H A D | TokenTest.php | 163 $node->getCacheContexts()->willReturn(['custom_context']); 174 ], $bubbleable_metadata->getCacheContexts()); 194 $node->getCacheContexts()->willReturn([]); 209 ], $bubbleable_metadata->getCacheContexts()); 232 $node->getCacheContexts()->willReturn([]); 247 ], $bubbleable_metadata->getCacheContexts());
|
/dports/www/drupal9/drupal-9.2.10/core/tests/Drupal/Tests/Core/Utility/ |
H A D | TokenTest.php | 163 $node->getCacheContexts()->willReturn(['custom_context']); 174 ], $bubbleable_metadata->getCacheContexts()); 194 $node->getCacheContexts()->willReturn([]); 209 ], $bubbleable_metadata->getCacheContexts()); 232 $node->getCacheContexts()->willReturn([]); 247 ], $bubbleable_metadata->getCacheContexts());
|
/dports/www/drupal8/drupal-8.9.20/core/modules/file/tests/src/Kernel/ |
H A D | AccessTest.php | 141 … $this->assertSame(['session', 'user'], $file->access('view', $account, TRUE)->getCacheContexts()); 142 …is->assertSame(['session', 'user'], $file->access('download', $account, TRUE)->getCacheContexts()); 146 $this->assertSame(['user'], $file->access('view', $account, TRUE)->getCacheContexts()); 147 $this->assertSame(['user'], $file->access('download', $account, TRUE)->getCacheContexts());
|
/dports/www/drupal9/drupal-9.2.10/core/modules/file/tests/src/Kernel/ |
H A D | AccessTest.php | 141 … $this->assertSame(['session', 'user'], $file->access('view', $account, TRUE)->getCacheContexts()); 142 …is->assertSame(['session', 'user'], $file->access('download', $account, TRUE)->getCacheContexts()); 146 $this->assertSame(['user'], $file->access('view', $account, TRUE)->getCacheContexts()); 147 $this->assertSame(['user'], $file->access('download', $account, TRUE)->getCacheContexts());
|
/dports/www/drupal8/drupal-8.9.20/core/modules/system/tests/src/Unit/Menu/ |
H A D | MenuLinkTreeTest.php | 214 …erge($expected_build['#cache']['contexts'], $access_cache_contexts, $links[0]->getCacheContexts()); 234 …he']['contexts'], $access_cache_contexts, $links[0]->getCacheContexts(), $links[1]->getCacheContex… 266 …he']['contexts'], $access_cache_contexts, $links[0]->getCacheContexts(), $links[1]->getCacheContex…
|
/dports/www/drupal9/drupal-9.2.10/core/modules/system/tests/src/Unit/Menu/ |
H A D | MenuLinkTreeTest.php | 214 …erge($expected_build['#cache']['contexts'], $access_cache_contexts, $links[0]->getCacheContexts()); 234 …he']['contexts'], $access_cache_contexts, $links[0]->getCacheContexts(), $links[1]->getCacheContex… 266 …he']['contexts'], $access_cache_contexts, $links[0]->getCacheContexts(), $links[1]->getCacheContex…
|
/dports/www/drupal9/drupal-9.2.10/core/modules/system/tests/src/Unit/Breadcrumbs/ |
H A D | PathBasedBreadcrumbBuilderTest.php | 154 $this->assertEquals(['url.path.is_front', 'url.path.parent'], $breadcrumb->getCacheContexts()); 171 $this->assertEquals(['url.path.is_front', 'url.path.parent'], $breadcrumb->getCacheContexts()); 210 ], $breadcrumb->getCacheContexts()); 266 ], $breadcrumb->getCacheContexts()); 293 $this->assertEquals(['url.path.is_front', 'url.path.parent'], $breadcrumb->getCacheContexts()); 337 $this->assertEquals(['url.path.is_front', 'url.path.parent'], $breadcrumb->getCacheContexts()); 389 ], $breadcrumb->getCacheContexts());
|
/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/KernelTests/Core/Config/ |
H A D | CacheabilityMetadataConfigOverrideTest.php | 52 $this->assertEqual(['pirate_day'], $config->getCacheContexts()); 75 $this->assertEqual(['pirate_day'], $block->getCacheContexts()); 86 $this->assertEqual(['pirate_day'], $block->getCacheContexts());
|
/dports/www/drupal9/drupal-9.2.10/core/tests/Drupal/KernelTests/Core/Config/ |
H A D | CacheabilityMetadataConfigOverrideTest.php | 52 $this->assertEquals(['pirate_day'], $config->getCacheContexts()); 75 $this->assertEquals(['pirate_day'], $block->getCacheContexts()); 86 $this->assertEquals(['pirate_day'], $block->getCacheContexts());
|
/dports/www/drupal8/drupal-8.9.20/core/modules/system/tests/src/Unit/Breadcrumbs/ |
H A D | PathBasedBreadcrumbBuilderTest.php | 154 $this->assertEquals(['url.path.is_front', 'url.path.parent'], $breadcrumb->getCacheContexts()); 171 $this->assertEquals(['url.path.is_front', 'url.path.parent'], $breadcrumb->getCacheContexts()); 210 ], $breadcrumb->getCacheContexts()); 266 ], $breadcrumb->getCacheContexts()); 293 $this->assertEquals(['url.path.is_front', 'url.path.parent'], $breadcrumb->getCacheContexts()); 337 $this->assertEquals(['url.path.is_front', 'url.path.parent'], $breadcrumb->getCacheContexts()); 389 ], $breadcrumb->getCacheContexts());
|
/dports/www/drupal8/drupal-8.9.20/core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ |
H A D | ViewsTestCacheContextFilter.php | 24 public function getCacheContexts() { function in Drupal\\views_test_data\\Plugin\\views\\filter\\ViewsTestCacheContextFilter 25 $cache_contexts = parent::getCacheContexts();
|
/dports/www/drupal9/drupal-9.2.10/core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ |
H A D | ViewsTestCacheContextFilter.php | 24 public function getCacheContexts() { function in Drupal\\views_test_data\\Plugin\\views\\filter\\ViewsTestCacheContextFilter 25 $cache_contexts = parent::getCacheContexts();
|
/dports/www/drupal8/drupal-8.9.20/core/modules/media/tests/src/Kernel/ |
H A D | MediaEmbedFilterTest.php | 38 $this->assertSame($expected_cacheability->getCacheContexts(), $result->getCacheContexts()); 156 $this->assertSame($expected_cacheability->getCacheContexts(), $result->getCacheContexts()); 420 $this->assertSame(['timezone', 'user.permissions'], $result->getCacheContexts());
|
/dports/www/drupal9/drupal-9.2.10/core/modules/media/tests/src/Kernel/ |
H A D | MediaEmbedFilterTest.php | 38 $this->assertSame($expected_cacheability->getCacheContexts(), $result->getCacheContexts()); 156 $this->assertSame($expected_cacheability->getCacheContexts(), $result->getCacheContexts()); 420 $this->assertSame(['timezone', 'user.permissions'], $result->getCacheContexts());
|
/dports/www/drupal8/drupal-8.9.20/core/lib/Drupal/Core/Cache/ |
H A D | CacheableDependencyTrait.php | 40 $this->cacheContexts = $cacheability->getCacheContexts(); 56 public function getCacheContexts() { function
|
/dports/www/drupal9/drupal-9.2.10/core/lib/Drupal/Core/Cache/ |
H A D | CacheableDependencyTrait.php | 40 $this->cacheContexts = $cacheability->getCacheContexts(); 56 public function getCacheContexts() { function
|
/dports/www/drupal8/drupal-8.9.20/core/modules/node/src/Plugin/views/filter/ |
H A D | Status.php | 37 public function getCacheContexts() { function in Drupal\\node\\Plugin\\views\\filter\\Status 38 $contexts = parent::getCacheContexts();
|