27 calls to EntityContext::fromEntity()

ConditionTestDualUserTest::doTestDifferentUser in core/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php
Tests with each context mapped to different users.
ConditionTestDualUserTest::doTestIdenticalUser in core/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php
Tests with both contexts mapped to the same user.
ContextDefinitionTest::testIsSatisfiedBy in core/tests/Drupal/KernelTests/Core/Plugin/ContextDefinitionTest.php
Tests is satisfied by.
ContextHandlerTest::testApplyContextMapping in core/tests/Drupal/KernelTests/Core/Plugin/ContextHandlerTest.php
Tests apply context mapping.
ContextHandlerTest::testApplyContextMappingAlreadyApplied in core/tests/Drupal/KernelTests/Core/Plugin/ContextHandlerTest.php
Tests apply context mapping already applied.
CurrentUserContext::getRuntimeContexts in core/modules/user/src/ContextProvider/CurrentUserContext.php
Gets runtime context values for the given context IDs.
DefaultsSectionStorage::deriveContextsFromRoute in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Derives the available plugin contexts from route values.
DefaultsSectionStorage::getContextsDuringPreview in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
Gets contexts for use during preview.
DefaultsSectionStorageTest::testAccess in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
Tests access.
DefaultsSectionStorageTest::testGetContexts in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
Tests get contexts.
DefaultsSectionStorageTest::testGetContextsDuringPreview in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
Tests get contexts during preview.
DefaultsSectionStorageTest::testGetTempstoreKey in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
Tests get tempstore key.
DefaultsSectionStorageTest::testLoadFromDisplay in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
Tests loading given a display.
LayoutBuilderEntityViewDisplay::buildSections in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Builds the render array for the sections of a given entity.
LayoutBuilderEntityViewDisplay::getContextsForEntity in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Gets the available contexts for a given entity.
LayoutEntityHelperTrait::getSectionStorageContextsForEntity in core/modules/layout_builder/src/LayoutEntityHelperTrait.php
Gets the section storage contexts for an entity.
LayoutEntityHelperTrait::getSectionStorageForEntity in core/modules/layout_builder/src/LayoutEntityHelperTrait.php
Gets the section storage for an entity.
LayoutEntityHelperTraitTest::testGetSectionStorageForEntity in core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php
Tests get section storage for entity.
MultipleStaticContext::getRuntimeContexts in core/modules/block/tests/modules/block_test/src/ContextProvider/MultipleStaticContext.php
Gets runtime context values for the given context IDs.
OptionalContextConditionTest::testContextAvailable in core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php
Tests with both contexts mapped to the same user.
OverridesSectionStorage::getDefaultSectionStorage in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Returns the corresponding defaults section storage for this override.
OverridesSectionStorageTest::testAccess in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
Tests access.
OverridesSectionStorageTest::testGetContexts in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
Tests get contexts.
OverridesSectionStorageTest::testGetContextsDuringPreview in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
Tests get contexts during preview.
OverridesSectionStorageTest::testGetDefaultSectionStorage in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
Tests get default section storage.
OverridesSectionStorageTest::testGetTempstoreKey in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
Tests get tempstore key.
OverridesSectionStorageTest::testIsOverridden in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
Tests is overridden.

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