You are here

54 calls to Drupal::cache() in Drupal 10

AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags in core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php
Asserts page cache miss, then hit for the given URL; checks cache headers.
AssertViewsCacheTagsTrait::assertViewsCacheTags in core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
Asserts a view's result & render cache items' cache tags.
BlockTest::testBlockCacheTags in core/modules/block/tests/src/Functional/BlockTest.php
Tests that cache tags are properly set and bubbled up to the page cache.
book_uninstall in core/modules/book/book.install
Implements hook_uninstall().
BreadcrumbFrontCacheContextsTest::setUp in core/modules/system/tests/src/Functional/Menu/BreadcrumbFrontCacheContextsTest.php
CachePluginBase::cacheGet in core/modules/views/src/Plugin/views/cache/CachePluginBase.php
Retrieve data from the cache.
CachePluginBase::cacheSet in core/modules/views/src/Plugin/views/cache/CachePluginBase.php
Save data to the cache.
CacheTest::testCacheData in core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
Tests the data contained in cached items.
CacheTest::testSubqueryStringCache in core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
Tests that Subqueries are cached as expected.
CacheTestBase::assertCacheRemoved in core/modules/system/tests/src/Functional/Cache/CacheTestBase.php
Asserts that a cache entry has been removed.
CacheTestBase::checkCacheExists in core/modules/system/tests/src/Functional/Cache/CacheTestBase.php
Checks whether or not a cache entry exists.
CKEditor::getLangcodes in core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
Returns a list of language codes supported by CKEditor.
DatabaseBackendTagTest::testTagInvalidations in core/tests/Drupal/KernelTests/Core/Cache/DatabaseBackendTagTest.php
DbDumpTest::setUp in core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php
DbDumpTest::testScriptLoad in core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php
Tests loading the script back into the database.
delay_cache_tags_invalidation_entity_test_insert in core/modules/system/tests/modules/delay_cache_tags_invalidation/delay_cache_tags_invalidation.module
Implements hook_ENTITY_TYPE_insert().
delay_cache_tags_invalidation_user_insert in core/modules/system/tests/modules/delay_cache_tags_invalidation/delay_cache_tags_invalidation.module
Implements hook_ENTITY_TYPE_insert().
DrupalTest::testCache in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the cache() method.
EndOfTransactionQueriesTest::testEntitySave in core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php
EndOfTransactionQueriesTest::testEntitySaveRollback in core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php
EntityCacheTagsTestBase::verifyRenderCache in core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php
Verify that a given render cache entry exists, with the correct cache tags.
EntityDisplayTest::testEntityDisplayInvalidateCacheTags in core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
Ensure that entity view display changes invalidates cache tags.
EntityLanguageTestBase::toggleFieldTranslatability in core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php
Toggles field storage translatability.
EntityViewBuilderTest::testEntityViewBuilderCache in core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php
Tests entity render cache handling.
FieldAttachOtherTest::testEntityCache in core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
Tests entity cache.
filter_formats in core/modules/filter/filter.module
Retrieves a list of enabled text formats, ordered by weight.
FormController::__construct in core/modules/system/tests/modules/condition_test/src/FormController.php
Constructs a \Drupal\condition_test\FormController object.
hook_image_style_flush in core/modules/image/image.api.php
Respond to image style flushing.
locale_configurable_language_delete in core/modules/locale/locale.module
Implements hook_ENTITY_TYPE_delete() for 'configurable_language'.
locale_configurable_language_insert in core/modules/locale/locale.module
Implements hook_ENTITY_TYPE_insert() for 'configurable_language'.
locale_configurable_language_update in core/modules/locale/locale.module
Implements hook_ENTITY_TYPE_update() for 'configurable_language'.
Menu::delete in core/modules/system/src/Entity/Menu.php
Deletes an entity permanently.
Menu::save in core/modules/system/src/Entity/Menu.php
Saves an entity permanently.
MigrateSqlSourceTestBase::testSource in core/modules/migrate/tests/src/Kernel/MigrateSqlSourceTestBase.php
Tests the source plugin against a particular data set.
MigrationSourceCacheTest::testCacheCountsUsed in core/modules/migrate/tests/src/Kernel/Plugin/source/MigrationSourceCacheTest.php
Test that values are pulled from the cache when appropriate.
PageCacheTagsTestBase::verifyPageCache in core/modules/system/tests/src/Functional/Cache/PageCacheTagsTestBase.php
Verify that when loading a given page, it's a page cache hit or miss.
PageCacheTest::testPageCacheTags in core/modules/page_cache/tests/src/Functional/PageCacheTest.php
Tests that cache tags are properly persisted.
PageCacheTest::testPageCacheTagsIndependentFromCacheabilityHeaders in core/modules/page_cache/tests/src/Functional/PageCacheTest.php
Tests that the page cache doesn't depend on cacheability headers.
PathAliasTest::testPathCache in core/modules/path/tests/src/Functional/PathAliasTest.php
Tests the path cache.
PathWorkspacesTest::testPathAliases in core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php
Tests path aliases with workspaces.
PathWorkspacesTest::testPathAliasesUserSwitch in core/modules/workspaces/tests/src/Functional/PathWorkspacesTest.php
Tests path aliases with workspaces and user switching.
RegistryTest::testMultipleSubThemes in core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php
Tests the theme registry with multiple subthemes.
RegistryTest::testRaceCondition in core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php
Tests the behavior of the theme registry class.
RegistryTest::testSuggestionPreprocessFunctions in core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php
Tests the theme registry with suggestions.
RegistryTest::testThemeRegistryAlterByTheme in core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php
Tests that the theme registry can be altered by themes.
RegistryTest::testThemeTemplatesRegisteredByModules in core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php
Tests theme-provided templates that are registered by modules.
ShortcutCacheTagsTest::testEntityCreation in core/modules/shortcut/tests/src/Functional/ShortcutCacheTagsTest.php
Tests that when creating a shortcut, the shortcut set tag is invalidated.
SourcePluginBase::getCache in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
Gets the cache object.
Stable9TemplateOverrideTest::testStable9TemplateOverrides in core/tests/Drupal/KernelTests/Core/Theme/Stable9TemplateOverrideTest.php
Ensures that Stable 9 overrides all relevant core templates.
StableTemplateOverrideTest::testStableTemplateOverrides in core/tests/Drupal/KernelTests/Core/Theme/StableTemplateOverrideTest.php
Ensures that Stable overrides all relevant core templates.
UninstallTest::testUninstallPage in core/modules/system/tests/src/Functional/Module/UninstallTest.php
Tests the Uninstall page and Uninstall confirmation page.
UpdateCacheTest::testCaches in core/modules/system/tests/src/Functional/UpdateSystem/UpdateCacheTest.php
Tests that caches are cleared during updates.
WorkflowUiNoTypeTest::testWorkflowUiWithNoType in core/modules/workflows/tests/src/Functional/WorkflowUiNoTypeTest.php
Tests the creation of a workflow through the UI.
_ckeditor5_get_langcode_mapping in core/modules/ckeditor5/ckeditor5.module
Returns a list of language codes supported by CKEditor 5.