Search for metadata

  1. Search 7.x for metadata
  2. Search 9.5.x for metadata
  3. Search 8.9.x for metadata
  4. Search 10.3.x for metadata
  5. Other projects
Title Object type File name Summary
TaggingTest::testMetaData function core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php Tests that we can attach metadata to a query object.
TemplateProjectTestBase::$metadataServer property core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php A secondary server instance, to serve XML metadata about available updates.
TemplateProjectTestBase::setReleaseMetadata function core/modules/package_manager/tests/src/Build/TemplateProjectTestBase.php Prepares the test site to serve an XML feed of available release metadata.
Test::getMetadata function core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php Gets the value for a metadata attribute for a given media item.
Test::getMetadataAttributes function core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php Gets a list of metadata attributes provided by this plugin.
TestController::metadata function core/modules/package_manager/tests/modules/package_manager_test_release_history/src/TestController.php Page callback: Prints mock XML for the Update Manager module.
TestController::tokenReplaceWithoutPassedBubbleableMetadata function core/modules/system/tests/modules/token_test/src/Controller/TestController.php Provides a token replacement with a node as well as the current user.
TestTranslation::getMetadata function core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/TestTranslation.php Gets the value for a metadata attribute for a given media item.
ThemeCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php Gets the cacheability metadata for the context.
ThemeRenderAndAutoescapeTest::testBubblingMetadata function core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php Ensure cache metadata is bubbled when using theme_render_and_autoescape().
ThemeRenderAndAutoescapeTest::testBubblingMetadataWithRenderable function core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php Ensure cache metadata is bubbled when using theme_render_and_autoescape().
TimeZoneCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Gets the cacheability metadata for the context.
TokenTest::testReplaceWithBubbleableMetadataObject function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
TokenTest::testReplaceWithHookTokensAlterWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
@covers ::replace
TokenTest::testReplaceWithHookTokensWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace
TrackerTest::assertHistoryMetadata function core/modules/tracker/tests/src/Functional/TrackerTest.php Passes if the appropriate history metadata exists.
TrackerTest::testTrackerHistoryMetadata function core/modules/tracker/tests/src/Functional/TrackerTest.php Tests the metadata for the "new"/"updated" indicators.
TwigEnvironment::CACHE_PREFIX_METADATA_KEY constant core/lib/Drupal/Core/Template/TwigEnvironment.php Key name of the Twig cache prefix metadata key-value pair in State.
TwigEnvironment::getTemplateMetadata function core/lib/Drupal/Core/Template/TwigEnvironment.php Retrieves metadata associated with a template.
TwigExtension::bubbleArgMetadata function core/lib/Drupal/Core/Template/TwigExtension.php Bubbles Twig template argument's cacheability & attachment metadata.
TypedDataMetadata class core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php Validator metadata for typed data objects.
TypedDataMetadata.php file core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php
TypedDataMetadata::$typedData property core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php The typed data object the metadata is about.
TypedDataMetadata::findConstraints function core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php
TypedDataMetadata::getCascadingStrategy function core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php
TypedDataMetadata::getConstraints function core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php
TypedDataMetadata::getTraversalStrategy function core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php
TypedDataMetadata::__construct function core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php Constructs the object.
UpdateCalculateProjectDataTest::setReleaseMetadata function core/modules/update/tests/src/Kernel/UpdateCalculateProjectDataTest.php Sets the release metadata file to use when fetching available updates.
UrlBubbleableMetadataBubblingTest class core/modules/system/tests/src/Functional/Render/UrlBubbleableMetadataBubblingTest.php Tests that URL bubbleable metadata is correctly bubbled.
UrlBubbleableMetadataBubblingTest.php file core/modules/system/tests/src/Functional/Render/UrlBubbleableMetadataBubblingTest.php
UrlBubbleableMetadataBubblingTest::$defaultTheme property core/modules/system/tests/src/Functional/Render/UrlBubbleableMetadataBubblingTest.php The theme to install as the default for testing.
UrlBubbleableMetadataBubblingTest::$modules property core/modules/system/tests/src/Functional/Render/UrlBubbleableMetadataBubblingTest.php Modules to install.
UrlBubbleableMetadataBubblingTest::setUp function core/modules/system/tests/src/Functional/Render/UrlBubbleableMetadataBubblingTest.php
UrlBubbleableMetadataBubblingTest::testUrlBubbleableMetadataBubbling function core/modules/system/tests/src/Functional/Render/UrlBubbleableMetadataBubblingTest.php Tests that URL bubbleable metadata is correctly bubbled.
UrlCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php Gets the cacheability metadata for the context.
UrlTest::testLinkBubbleableMetadata function core/modules/system/tests/src/Kernel/Common/UrlTest.php Tests that #type=link bubbles outbound route/path processors' metadata.
UserCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/UserCacheContext.php Gets the cacheability metadata for the context.
UserRolesCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php Gets the cacheability metadata for the context based on the parameter value.
View::addCacheMetadata function core/modules/views/src/Entity/View.php Fills in the cache metadata of this view.
views.view.test_cacheable_metadata_calculation.yml file core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/config/install/views.view.test_cacheable_metadata_calculation.yml core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/config/install/views.view.test_cacheable_metadata_calculation.yml
ViewsTestCacheContext::getCacheableMetadata function core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php Gets the cacheability metadata for the context.
views_test_cacheable_metadata_calculation.info.yml file core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/views_test_cacheable_metadata_calculation.info.yml core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/views_test_cacheable_metadata_calculation.info.yml
WorkspaceCacheContext::getCacheableMetadata function core/modules/workspaces/src/WorkspaceCacheContext.php Gets the cacheability metadata for the context.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.