28 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 - @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 - 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 - @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.
- 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::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
- 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::deriveContextsFromRoute in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ OverridesSectionStorage.php - Derives the available plugin contexts from route values.
- 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 - @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
- QuickEditIntegration::entityViewAlter in core/
modules/ layout_builder/ src/ QuickEditIntegration.php - Alters the entity view build for Quick Edit compatibility.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.