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 11.x for getEntity
  5. Other projects
Title Object type File name Summary
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 Gets the entity that field belongs to.
LinkBase::getEntityRepository function core/modules/views/src/Plugin/views/field/LinkBase.php
LinkBase::getEntityTypeId function core/modules/views/src/Plugin/views/field/LinkBase.php Returns the entity type identifier.
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 Loads entity IDs using a pager sorted by the entity id.
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.
MenuListBuilder::getEntityIds function core/modules/menu_ui/src/MenuListBuilder.php Loads entity IDs using a pager sorted by the entity id.
MigrateMessageControllerTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateMessageControllerTest.php Gets the expected number of entities per entity type after migration.
MigrateMessageControllerTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateMessageControllerTest.php Gets expected number of entities per entity after incremental migration.
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 Gets the expected number of entities per entity type after migration.
MultilingualReviewPageTestBase::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php Gets expected number of entities per entity after incremental migration.
NodeClassicTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php Gets the expected number of entities per entity type after migration.
NodeClassicTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d6/NodeClassicTest.php Gets expected number of entities per entity after incremental migration.
NodeReference::getEntityTypeMigrationId function core/modules/migrate_drupal/src/Plugin/migrate/field/d6/NodeReference.php Gets the plugin ID for the reference type migration.
NodeReference::getEntityTypeMigrationId function core/modules/migrate_drupal/src/Plugin/migrate/field/d7/NodeReference.php Gets the plugin ID for the reference type migration.
NodeStorageSchema::getEntitySchema function core/modules/node/src/NodeStorageSchema.php Gets the entity schema for the specified entity type.
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 Loads entity IDs using a pager sorted by the entity id.
PathAliasStorageSchema::getEntitySchema function core/modules/path_alias/src/PathAliasStorageSchema.php Gets the entity schema for the specified entity type.
PerComponentEntityDisplay::getEntity function core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityDisplay.php Gets the entity.
PerComponentEntityFormDisplay::getEntity function core/modules/migrate/src/Plugin/migrate/destination/PerComponentEntityFormDisplay.php Gets the entity.
QueryBase::getEntityTypeId function core/lib/Drupal/Core/Entity/Query/QueryBase.php Gets the ID of the entity type for this query.
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 Returns the entity type identifier.
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 Gets the form entity.
RevisionDeleteForm::getEntityFromRouteMatch function core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php Determines which entity will be used by this form from a RouteMatch object.
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 Gets the form entity.
RevisionRevertForm::getEntityFromRouteMatch function core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php Determines which entity will be used by this form from a RouteMatch object.
SourceProviderTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/SourceProviderTest.php Gets the expected number of entities per entity type after migration.

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