Search for getEntity

  1. Search 7.x for getEntity
  2. Search 9.5.x for getEntity
  3. Search 10.3.x for getEntity
  4. Search 11.x for getEntity
  5. Other projects
Title Object type File name Summary
EntityManager::getEntityTypeLabels function core/lib/Drupal/Core/Entity/EntityManager.php
EntityManagerTest::testGetEntityTypeFromClass function core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php Tests the getEntityTypeFromClass() method.
EntityModerationRouteProvider::getEntityTypeIdKeyType function core/modules/content_moderation/src/Entity/Routing/EntityModerationRouteProvider.php Gets the type of the ID key for a given entity type.
EntityOperations::getEntityManager function core/modules/views/src/Plugin/views/field/EntityOperations.php
EntityOperations::getEntityRepository function core/modules/views/src/Plugin/views/field/EntityOperations.php Returns the entity repository.
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 Returns the entity type manager.
EntityReferenceFieldTest::testTargetEntityNoLoad function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Tests that the target entity is not unnecessarily loaded.
EntityReferenceItemNormalizer::targetEntityIsFieldable function core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php Checks whether the referenced entity is of a fieldable entity type.
EntityReferenceRdfaTest::$targetEntity property core/modules/rdf/tests/src/Kernel/Field/EntityReferenceRdfaTest.php The term for testing.
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 Test that passed old destination values are used by default.
EntityRevisionTest::testGetEntityLoadFailure function core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php Test entity load failure.
EntityRevisionTest::testGetEntityNewRevision function core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php Test that new revisions are flagged to be written as new.
EntityRevisionTest::testGetEntityUpdateRevision function core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php Test 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::getEntityManager function core/modules/views/src/Plugin/views/row/EntityRow.php
EntityRow::getEntityRepository function core/modules/views/src/Plugin/views/row/EntityRow.php Returns the entity repository.
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 Returns the entity type manager.
EntityShortcutSet::getEntity function core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php Creates or loads an 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::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.
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.
EntityTranslationRenderTrait::getEntityRepository function core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php Returns the entity repository.
EntityTranslationRenderTrait::getEntityTranslation 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.
EntityTranslationRenderTrait::getEntityTypeManager function core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php Returns the entity type manager.
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::testGetEntityTypeFromClassNoMatch 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.