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
EntityModerationRouteProvider::getEntityTypeIdKeyType function core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php Gets the type of the ID key for a given entity type.
EntityNodeType::getEntity function core/modules/node/src/Plugin/migrate/destination/EntityNodeType.php Creates or loads an entity.
EntityOperations::getEntityRepository function core/modules/views/src/Plugin/views/field/EntityOperations.php
EntityOperations::getEntityTypeId function core/modules/views/src/Plugin/views/field/EntityOperations.php Returns the entity type identifier.
EntityOperations::getEntityTypeManager function core/modules/views/src/Plugin/views/field/EntityOperations.php
EntityPermissionsRouteProvider::getEntityPermissionsRoute function core/modules/user/src/Entity/EntityPermissionsRouteProvider.php Gets the entity permissions route.
EntityPermissionsRouteProviderWithCheck::getEntityPermissionsRoute function core/modules/user/src/Entity/EntityPermissionsRouteProviderWithCheck.php Gets the entity permissions route.
EntityReferenceFieldTest::testTargetEntityNoLoad function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Tests that the target entity is not unnecessarily loaded.
EntityReferenceFieldTest::testTargetEntityTypeMissing function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Tests exception thrown with a missing target entity type.
EntityResolverManager::getEntityTypes function core/lib/Drupal/Core/Entity/EntityResolverManager.php Gets the list of all entity types.
EntityResource::getEntityFromResourceIdentifier function core/modules/jsonapi/src/Controller/EntityResource.php Loads the entity targeted by a resource identifier.
EntityResourceTestBase::getEntityResourcePostUrl function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Gets an entity resource's POST URL.
EntityResourceTestBase::getEntityResourceUrl function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Gets an entity resource's GET/PATCH/DELETE URL.
EntityRevision::getEntity function core/modules/migrate/src/Plugin/migrate/destination/EntityRevision.php Gets the entity.
EntityRevision::getEntity function core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php Allow public access for testing.
EntityRevisionTest::getEntityRevisionDestination function core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php Helper method to create an entity revision destination with mock services.
EntityRevisionTest::testGetEntityDestinationValues function core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php Tests that passed old destination values are used by default.
EntityRevisionTest::testGetEntityLoadFailure function core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php Tests entity load failure.
EntityRevisionTest::testGetEntityNewRevision function core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php Tests that new revisions are flagged to be written as new.
EntityRevisionTest::testGetEntityUpdateRevision function core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php Tests that revision updates update.
EntityRevisionTestDestination::getEntity function core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php Gets the entity.
EntityRevisionTestDestination::getEntityTypeId function core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php Finds the entity type from configuration or plugin ID.
EntityRow::getEntityRepository function core/modules/views/src/Plugin/views/row/EntityRow.php
EntityRow::getEntityTypeId function core/modules/views/src/Plugin/views/row/EntityRow.php Returns the entity type identifier.
EntityRow::getEntityTypeManager function core/modules/views/src/Plugin/views/row/EntityRow.php
EntityShortcutSet::getEntity function core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php Creates or loads an entity.
EntityStorageBase::getEntityClass function core/lib/Drupal/Core/Entity/EntityStorageBase.php Retrieves the class name used to create the entity.
EntityStorageBase::getEntityType function core/lib/Drupal/Core/Entity/EntityStorageBase.php Gets the entity type definition.
EntityStorageBase::getEntityTypeId function core/lib/Drupal/Core/Entity/EntityStorageBase.php Gets the entity type ID.
EntityStorageInterface::getEntityClass function core/lib/Drupal/Core/Entity/EntityStorageInterface.php Retrieves the class name used to create the entity.
EntityStorageInterface::getEntityType function core/lib/Drupal/Core/Entity/EntityStorageInterface.php Gets the entity type definition.
EntityStorageInterface::getEntityTypeId function core/lib/Drupal/Core/Entity/EntityStorageInterface.php Gets the entity type ID.
EntityTaxonomyVocabulary::getEntity function core/modules/taxonomy/src/Plugin/migrate/destination/EntityTaxonomyVocabulary.php Creates or loads an entity.
EntityTest::getEntityKey function core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php Gets the value of the given entity key, if defined.
EntityTestDestination::getEntity function core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php Creates or loads an entity.
EntityTestDestination::getEntityTypeId function core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php Finds the entity type from configuration or plugin ID.
EntityTestUpdateStorageSchema::getEntitySchema function core/modules/system/tests/modules/entity_test_update/src/EntityTestUpdateStorageSchema.php Gets the entity schema for the specified entity type.
EntityTranslationRendererBase::getEntity function core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php Gets the entity associated with a row.
EntityTranslationRenderTrait::getEntityTranslationByRelationship function core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php Returns the entity translation matching the configured row language.
EntityTranslationRenderTrait::getEntityTranslationRenderer function core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php Returns the current renderer.
EntityTranslationRenderTrait::getEntityTypeId function core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php Returns the entity type identifier.
EntityTypeEvent::getEntityType function core/lib/Drupal/Core/Entity/EntityTypeEvent.php The entity type the event refers to.
EntityTypeEventSubscriberTrait::getEntityTypeEvents function core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php Gets the subscribed events.
EntityTypeRepository::getEntityTypeFromClass function core/lib/Drupal/Core/Entity/EntityTypeRepository.php Gets the entity type ID based on the class that is called on.
EntityTypeRepository::getEntityTypeLabels function core/lib/Drupal/Core/Entity/EntityTypeRepository.php Builds a list of entity type labels suitable for a Form API options list.
EntityTypeRepositoryInterface::getEntityTypeFromClass function core/lib/Drupal/Core/Entity/EntityTypeRepositoryInterface.php Gets the entity type ID based on the class that is called on.
EntityTypeRepositoryInterface::getEntityTypeLabels function core/lib/Drupal/Core/Entity/EntityTypeRepositoryInterface.php Builds a list of entity type labels suitable for a Form API options list.
EntityTypeRepositoryTest::testGetEntityTypeFromClass function core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php @covers ::getEntityTypeFromClass
EntityTypeRepositoryTest::testGetEntityTypeFromClassAmbiguous function core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php @covers ::getEntityTypeFromClass
EntityTypeRepositoryTest::testGetEntityTypeFromClassAmbiguousBundleClass function core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php @covers ::getEntityTypeFromClass

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