Home
last modified time | relevance | path

Searched refs:getCacheContexts (Results 1 – 25 of 228) sorted by relevance

12345678910

/dports/www/drupal8/drupal-8.9.20/core/lib/Drupal/Core/Render/
H A DRenderCache.php231 …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 DRenderCache.php241 …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 DForumListingBreadcrumbBuilderTest.php131 $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 DForumNodeBreadcrumbBuilderTest.php139 $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 DForumListingBreadcrumbBuilderTest.php132 $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 DForumNodeBreadcrumbBuilderTest.php140 $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 DViewsExposedFilterBlock.php22 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 DViewsExposedFilterBlock.php22 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 DTokenTest.php163 $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 DTokenTest.php163 $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 DAccessTest.php141 … $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 DAccessTest.php141 … $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 DMenuLinkTreeTest.php214 …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 DMenuLinkTreeTest.php214 …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 DPathBasedBreadcrumbBuilderTest.php154 $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 DCacheabilityMetadataConfigOverrideTest.php52 $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 DCacheabilityMetadataConfigOverrideTest.php52 $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 DPathBasedBreadcrumbBuilderTest.php154 $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 DViewsTestCacheContextFilter.php24 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 DViewsTestCacheContextFilter.php24 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 DMediaEmbedFilterTest.php38 $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 DMediaEmbedFilterTest.php38 $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 DCacheableDependencyTrait.php40 $this->cacheContexts = $cacheability->getCacheContexts();
56 public function getCacheContexts() { function
/dports/www/drupal9/drupal-9.2.10/core/lib/Drupal/Core/Cache/
H A DCacheableDependencyTrait.php40 $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 DStatus.php37 public function getCacheContexts() { function in Drupal\\node\\Plugin\\views\\filter\\Status
38 $contexts = parent::getCacheContexts();

12345678910