You are here

28 calls to EntityContext::fromEntity() in Drupal 10

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
@covers ::isSatisfiedBy
ContextHandlerTest::testApplyContextMapping in core/tests/Drupal/KernelTests/Core/Plugin/ContextHandlerTest.php
@covers ::applyContextMapping
ContextHandlerTest::testApplyContextMappingAlreadyApplied in core/tests/Drupal/KernelTests/Core/Plugin/ContextHandlerTest.php
@covers ::applyContextMapping
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
DefaultsSectionStorage::getContextsDuringPreview in core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
DefaultsSectionStorageTest::testAccess in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
@covers ::access @dataProvider providerTestAccess
DefaultsSectionStorageTest::testGetContexts in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
@covers ::getContexts
DefaultsSectionStorageTest::testGetContextsDuringPreview in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
@covers ::getContextsDuringPreview
DefaultsSectionStorageTest::testGetTempstoreKey in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
@covers ::getTempstoreKey
DefaultsSectionStorageTest::testLoadFromDisplay in core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php
Tests loading given a display.
EntityContextTypedDataTest::testValidateConfigEntityContext in core/tests/Drupal/KernelTests/Core/Plugin/EntityContextTypedDataTest.php
Tests that entity contexts wrapping a config entity can be validated.
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.
LayoutBuilderIntegration::entityViewAlter in core/modules/quickedit/src/LayoutBuilderIntegration.php
Alters the entity view build for Layout Builder compatibility.
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
@covers ::getSectionStorageForEntity
OptionalContextConditionTest::testContextAvailable in core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php
Tests with both contexts mapped to the same user.
OverridesSectionStorage::deriveContextsFromRoute in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
OverridesSectionStorage::getDefaultSectionStorage in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
OverridesSectionStorageTest::testAccess in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
@covers ::access @dataProvider providerTestAccess
OverridesSectionStorageTest::testGetContexts in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
@covers ::getContexts
OverridesSectionStorageTest::testGetContextsDuringPreview in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
@covers ::getContextsDuringPreview
OverridesSectionStorageTest::testGetDefaultSectionStorage in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
@covers ::getDefaultSectionStorage
OverridesSectionStorageTest::testGetTempstoreKey in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
@covers ::getTempstoreKey
OverridesSectionStorageTest::testIsOverridden in core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php
@covers ::isOverridden