Search for getEntity

  1. Search 7.x for getEntity
  2. Search 9.5.x for getEntity
  3. Search 8.9.x for getEntity
  4. Search 10.3.x for getEntity
  5. Other projects
Title Object type File name Summary
JsonApiPatchRegressionTest::testBundleSpecificTargetEntityTypeFromIssue2953207 function core/modules/jsonapi/tests/src/Functional/JsonApiPatchRegressionTest.php Ensure filtering on relationships works with bundle-specific target types.
JsonApiRegressionTest::testDeepNestedIncludeMultiTargetEntityTypeFieldFromIssue2973681 function core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php Ensure deep nested include works on multi target entity type field.
LabelOnlyResourceObject::getEntity function core/modules/jsonapi/src/JsonApiResource/LabelOnlyResourceObject.php Gets the decorated entity.
LayoutEntityHelperTrait::getEntitySections function core/modules/layout_builder/src/LayoutEntityHelperTrait.php Gets the sections for an entity if any.
LayoutEntityHelperTraitTest::testGetEntitySections function core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php @covers ::getEntitySections
LayoutSectionItemList::getEntity function core/modules/layout_builder/src/Field/LayoutSectionItemList.php
LinkBase::getEntityRepository function core/modules/views/src/Plugin/views/field/LinkBase.php
LinkBase::getEntityTypeId function core/modules/views/src/Plugin/views/field/LinkBase.php
LinkBase::getEntityTypeManager function core/modules/views/src/Plugin/views/field/LinkBase.php
MediaLibraryAccessTest::providerFieldWidgetEntityFieldAccess function core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php Data provider for ::testFieldWidgetEntityFieldAccess().
MediaLibraryAccessTest::testFieldWidgetEntityCreateAccess function core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php Tests that the field widget opener respects entity creation permissions.
MediaLibraryAccessTest::testFieldWidgetEntityEditAccess function core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php Tests that the field widget opener respects entity-specific access.
MediaLibraryAccessTest::testFieldWidgetEntityFieldAccess function core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php Tests that the field widget opener respects entity field-level access.
MediaListBuilder::getEntityIds function core/modules/media/src/MediaListBuilder.php
MediaSourceEntityConstraintsInterface::getEntityConstraints function core/modules/media/src/MediaSourceEntityConstraintsInterface.php Gets media source-specific validation constraints for a media item.
MenuLinkContent::getEntity function core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php Loads the entity associated with this menu link.
MenuLinksTest::testMenuLinkContentGetEntity function core/modules/menu_link_content/tests/src/Kernel/MenuLinksTest.php Tests that getEntity() method returns correct value.
MigrateMessageControllerTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateMessageControllerTest.php
MigrateMessageControllerTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateMessageControllerTest.php
MigrateUpgradeTestBase::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Gets the expected number of entities per entity type after migration.
MigrateUpgradeTestBase::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Gets expected number of entities per entity after incremental migration.
ModeratedNodeListBuilder::getEntityRevisionIds function core/modules/content_moderation/src/ModeratedNodeListBuilder.php Loads entity revision IDs using a pager sorted by the entity revision ID.
ModerationInformationTest::getEntityTypeManager function core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php Returns a mock Entity Type Manager.
MultilingualReviewPageTestBase::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php
MultilingualReviewPageTestBase::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php
NodeClassicTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
NodeClassicTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php
NodeReference::getEntityTypeMigrationId function core/modules/migrate_drupal/src/Plugin/migrate/field/d6/NodeReference.php
NodeReference::getEntityTypeMigrationId function core/modules/migrate_drupal/src/Plugin/migrate/field/d7/NodeReference.php
NodeStorageSchema::getEntitySchema function core/modules/node/src/NodeStorageSchema.php
OverridesSectionStorage::getEntity function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php Gets the entity storing the overrides.
OverridesSectionStorage::getEntityTypes function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php Returns an array of relevant entity types.
PathAliasListBuilder::getEntityIds function core/modules/path/src/PathAliasListBuilder.php
PathAliasStorageSchema::getEntitySchema function core/modules/path_alias/src/PathAliasStorageSchema.php
PerComponentEntityDisplay::getEntity function core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php
PerComponentEntityFormDisplay::getEntity function core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityFormDisplay.php
QueryBase::getEntityTypeId function core/lib/Drupal/Core/Entity/Query/QueryBase.php
QueryInterface::getEntityTypeId function core/lib/Drupal/Core/Entity/Query/QueryInterface.php Gets the ID of the entity type for this query.
QueryPluginBase::getEntityTableInfo function core/modules/views/src/Plugin/views/query/QueryPluginBase.php Returns an array of all tables from the query that map to an entity type.
ReferenceBase::getEntityTypeMigrationId function core/modules/migrate_drupal/src/Plugin/migrate/field/ReferenceBase.php Gets the plugin ID for the reference type migration.
RenderedEntity::getEntityRepository function core/modules/views/src/Plugin/views/field/RenderedEntity.php
RenderedEntity::getEntityTypeId function core/modules/views/src/Plugin/views/field/RenderedEntity.php
RenderedEntity::getEntityTypeManager function core/modules/views/src/Plugin/views/field/RenderedEntity.php
ResourceTestBase::getEntityDuplicate function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
ResourceType::getEntityTypeId function core/modules/jsonapi/src/ResourceType/ResourceType.php Gets the entity type ID.
RevisionDeleteForm::getEntity function core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php
RevisionDeleteForm::getEntityFromRouteMatch function core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php
RevisionLogEntityTrait::getEntityType function core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php Gets the entity type definition.
RevisionRevertForm::getEntity function core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php
RevisionRevertForm::getEntityFromRouteMatch function core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php

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