67 calls to Cache::mergeTags()
- ArgumentPluginBase::getCacheTags in core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php - The cache tags associated with this object.
- AssertPageCacheContextsAndTagsTrait::assertCacheTags in core/
modules/ system/ tests/ src/ Functional/ Cache/ AssertPageCacheContextsAndTagsTrait.php - Ensures that some cache tags are present in the current response.
- BlockContentCacheTagsTest::testBlock in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentCacheTagsTest.php - Tests that the block is cached with the correct contexts and tags.
- BlockContentResourceTestBase::getExpectedCacheTags in core/
modules/ block_content/ tests/ src/ Functional/ Rest/ BlockContentResourceTestBase.php - The expected cache tags for the GET/HEAD response of the test entity.
- BlockContentTest::getExpectedCacheTags in core/
modules/ jsonapi/ tests/ src/ Functional/ BlockContentTest.php - The expected cache tags for the GET/HEAD response of the test entity.
- BlockTestHooks::blockBuildTestCacheAlter in core/
modules/ block/ tests/ modules/ block_test/ src/ Hook/ BlockTestHooks.php - Implements hook_block_build_BASE_BLOCK_ID_alter().
- BlockViewBuilder::viewMultiple in core/
modules/ block/ src/ BlockViewBuilder.php - Builds the render array for the provided entities.
- BlockViewBuilderTest::assertBlockRenderedWithExpectedCacheability in core/
modules/ block/ tests/ src/ Kernel/ BlockViewBuilderTest.php - Asserts that a block is built/rendered/cached with expected cacheability.
- BlockViewBuilderTest::testBlockViewBuilderBuildAlter in core/
modules/ block/ tests/ src/ Kernel/ BlockViewBuilderTest.php - Tests block build altering.
- CacheableMetadata::merge in core/
lib/ Drupal/ Core/ Cache/ CacheableMetadata.php - Merges the values of another CacheableMetadata object with this one.
- CachePluginBase::getCacheTags in core/
modules/ views/ src/ Plugin/ views/ cache/ CachePluginBase.php - Gets an array of cache tags for the current view.
- CachePluginBase::getRowCacheTags in core/
modules/ views/ src/ Plugin/ views/ cache/ CachePluginBase.php - Returns the row cache tags.
- CacheTagsChecksumTrait::invalidateTags in core/
lib/ Drupal/ Core/ Cache/ CacheTagsChecksumTrait.php - CacheTest::testMergeTags in core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheTest.php - Tests merge tags.
- CommentResourceTestBase::getExpectedCacheTags in core/
modules/ comment/ tests/ src/ Functional/ Rest/ CommentResourceTestBase.php - The expected cache tags for the GET/HEAD response of the test entity.
- CommentRssTest::testCommentRss in core/
modules/ comment/ tests/ src/ Functional/ CommentRssTest.php - Tests comments as part of an RSS feed.
- CommentTest::getExpectedCacheTags in core/
modules/ jsonapi/ tests/ src/ Functional/ CommentTest.php - The expected cache tags for the GET/HEAD response of the test entity.
- ConfigBase::getCacheTags in core/
lib/ Drupal/ Core/ Config/ ConfigBase.php - The cache tags associated with this object.
- ConfigEntityBase::invalidateTagsOnDelete in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php - Override to never invalidate the individual entities' cache tags; the config system already invalidates them.
- ConfigFormBase::storeConfigKeyToFormElementMap in core/
lib/ Drupal/ Core/ Form/ ConfigFormBase.php - Render API callback: Stores a map of element names to config keys.
- ContextAwarePluginTrait::getCacheTags in core/
lib/ Drupal/ Core/ Plugin/ ContextAwarePluginTrait.php - EditorFileReferenceFilterTest::testEditorFileReferenceFilter in core/
modules/ editor/ tests/ src/ Kernel/ EditorFileReferenceFilterTest.php - Tests the editor file reference filter.
- EntityBase::getCacheTags in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - The cache tags associated with this object.
- EntityBase::getListCacheTagsToInvalidate in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - The list cache tags to invalidate for this entity.
- EntityBase::invalidateTagsOnDelete in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Invalidates an entity's cache tags upon delete.
- EntityBase::invalidateTagsOnSave in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Invalidates an entity's cache tags upon save.
- EntityCacheTagsTestBase::testReferencedEntity in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityCacheTagsTestBase.php - Tests cache tags presence and invalidation of the entity when referenced.
- EntityField::getCacheTags in core/
modules/ views/ src/ Plugin/ views/ field/ EntityField.php - The cache tags associated with this object.
- EntityReferenceFormatterTest::testEntityFormatter in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ EntityReferenceFormatterTest.php - Tests the entity formatter.
- EntityResourceTestBase::getExpectedCacheTags in core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ EntityResourceTestBase.php - The expected cache tags for the GET/HEAD response of the test entity.
- EntityTestComputedFieldNormalizerTest::getExpectedCacheTags in core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestComputedFieldNormalizerTest.php - The expected cache tags for the GET/HEAD response of the test entity.
- EntityTestComputedFieldTest::getExpectedCacheTags in core/
modules/ jsonapi/ tests/ src/ Functional/ EntityTestComputedFieldTest.php - Retrieves the expected cache tags for the response.
- EntityTestController::listEntitiesAlphabetically in core/
modules/ system/ tests/ modules/ entity_test/ src/ Controller/ EntityTestController.php - List entities of the given entity type labels, sorted alphabetically.
- EntityTestJsonInternalPropertyNormalizerTest::getExpectedCacheTags in core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestJsonInternalPropertyNormalizerTest.php - The expected cache tags for the GET/HEAD response of the test entity.
- EntityTestTextItemNormalizerTest::getExpectedCacheTags in core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestTextItemNormalizerTest.php - The expected cache tags for the GET/HEAD response of the test entity.
- EntityTestTextItemNormalizerTest::testGetWithFormat in core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestTextItemNormalizerTest.php - Tests GETting an entity with the test text field set to a specific format.
- EntityViewBuilder::getBuildDefaults in core/
lib/ Drupal/ Core/ Entity/ EntityViewBuilder.php - Provides entity-specific defaults to the build process.
- EntityViewBuilder::resetCache in core/
lib/ Drupal/ Core/ Entity/ EntityViewBuilder.php - Resets the entity render cache.
- EntityWithUriCacheTagsTestBase::testEntityUri in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityWithUriCacheTagsTestBase.php - Tests cache tags presence and invalidation of the entity at its URI.
- File::invalidateTagsOnSave in core/
modules/ file/ src/ Entity/ File.php - Invalidates an entity's cache tags upon save.
- FileMediaFormatterBase::viewElements in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileMediaFormatterBase.php - Builds a renderable array for a field value.
- FrontPageTest::doTestFrontPageViewCacheTags in core/
modules/ node/ tests/ src/ Functional/ Views/ FrontPageTest.php - Tests the cache tags on the front page.
- ImageFormatter::viewElements in core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageFormatter.php - Builds a renderable array for a field value.
- ModeratedNodeResourceTestBase::getExpectedCacheTags in core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ ModeratedNode/ ModeratedNodeResourceTestBase.php - The expected cache tags for the GET/HEAD response of the test entity.
- ModerationStateFilter::getCacheTags in core/
modules/ content_moderation/ src/ Plugin/ views/ filter/ ModerationStateFilter.php - The cache tags associated with this object.
- node_title_list in core/
modules/ node/ node.module - Gathers a listing of links to nodes.
- OptionsAllowedValues::getAllowedValues in core/
modules/ options/ src/ OptionsAllowedValues.php - ProcessedText::preRenderText in core/
modules/ filter/ src/ Element/ ProcessedText.php - Pre-render callback: Renders a processed text element into #markup.
- PromotedContentPageTest::doTestPromotedContentPageViewCacheTags in core/
modules/ node/ tests/ src/ Functional/ Views/ PromotedContentPageTest.php - Tests the cache tags on the promoted content page.
- RawConfigWriterTrait::writeRawConfigEntity in core/
tests/ Drupal/ Tests/ Traits/ Core/ Config/ RawConfigWriterTrait.php - Writes a config entity without using the entity system or schema.
- RefinableCacheableDependencyTrait::addCacheTags in core/
lib/ Drupal/ Core/ Cache/ RefinableCacheableDependencyTrait.php - RenderCacheIntegrationTest::assertCacheTagsForEntityBasedView in core/
modules/ views/ tests/ src/ Kernel/ RenderCacheIntegrationTest.php - Tests cache tags on output & result cache items for an entity-based view.
- RenderCacheIntegrationTest::assertCacheTagsForFieldBasedView in core/
modules/ views/ tests/ src/ Kernel/ RenderCacheIntegrationTest.php - Tests cache tags on output & result cache items for a field-based view.
- RendererTest::testRenderCache in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php - Tests render cache.
- RendererTestBase::assertRenderCacheItem in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTestBase.php - Asserts a render cache item.
- ResourceTestBase::getExpectedCacheTags in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - The expected cache tags for the GET/HEAD response of the test entity.
- ResourceTestBase::testRevisions in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - Tests individual and collection revisions.
- ResponsiveImageFormatter::viewElements in core/
modules/ responsive_image/ src/ Plugin/ Field/ FieldFormatter/ ResponsiveImageFormatter.php - Builds a renderable array for a field value.
- SearchPageCacheTagsTest::testSearchTagsBubbling in core/
modules/ search/ tests/ src/ Functional/ SearchPageCacheTagsTest.php - Tests the presence of expected cache tags with referenced entities.
- shortcut_renderable_links in core/
modules/ shortcut/ shortcut.module - Returns an array of shortcut links, suitable for rendering.
- Sql::getCacheTags in core/
modules/ views/ src/ Plugin/ views/ query/ Sql.php - The cache tags associated with this object.
- StyleSerializerEntityTest::testSerializerResponses in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerEntityTest.php - Checks the behavior of the Serializer callback paths and row plugins.
- SystemBrandingBlock::getCacheTags in core/
modules/ system/ src/ Plugin/ Block/ SystemBrandingBlock.php - TermResourceTestBase::getExpectedCacheTags in core/
modules/ taxonomy/ tests/ src/ Functional/ Rest/ TermResourceTestBase.php - The expected cache tags for the GET/HEAD response of the test entity.
- TermTest::getExpectedCacheTags in core/
modules/ jsonapi/ tests/ src/ Functional/ TermTest.php - The expected cache tags for the GET/HEAD response of the test entity.
- ViewsBlockBase::getCacheTags in core/
modules/ views/ src/ Plugin/ Block/ ViewsBlockBase.php - ViewsBlockTest::testCacheableMetadata in core/
modules/ views/ tests/ src/ Unit/ Plugin/ Block/ ViewsBlockTest.php - Tests that cacheable metadata is retrieved from the view and merged with block cacheable metadata.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.