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
EntityDeleteFormTrait::getEntity function core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php Gets the entity of this form.
EntityDisplayBase::$targetEntityType property core/lib/Drupal/Core/Entity/EntityDisplayBase.php Entity type to be displayed.
EntityDisplayBase::getTargetEntityTypeId function core/lib/Drupal/Core/Entity/EntityDisplayBase.php Gets the entity type for which this display is used.
EntityDisplayBaseMockableClass::getEntityType function core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php Gets the entity type definition.
EntityDisplayBaseTest::testGetTargetEntityTypeId function core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php Tests get target entity type id.
EntityDisplayInterface::getTargetEntityTypeId function core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php Gets the entity type for which this display is used.
EntityDisplayModeBase::$targetEntityType property core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php The entity type this form or view mode is used for.
EntityFieldDefinitionTrait::getEntityTypeId function core/modules/migrate/src/EntityFieldDefinitionTrait.php Finds the entity type from configuration or plugin ID.
EntityForm::getEntity function core/lib/Drupal/Core/Entity/EntityForm.php Gets the form entity.
EntityForm::getEntityFromRouteMatch function core/lib/Drupal/Core/Entity/EntityForm.php Determines which entity will be used by this form from a RouteMatch object.
EntityFormDisplayAccessControlHandlerTest::getEntityTypeManager function core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php Returns a mock Entity Type Manager.
EntityFormInterface::getEntity function core/lib/Drupal/Core/Entity/EntityFormInterface.php Gets the form entity.
EntityFormInterface::getEntityFromRouteMatch function core/lib/Drupal/Core/Entity/EntityFormInterface.php Determines which entity will be used by this form from a RouteMatch object.
EntityFormTest::testGetEntityFromRouteMatchAdd function core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php Tests EntityForm::getEntityFromRouteMatch() for add forms without a bundle.
EntityFormTest::testGetEntityFromRouteMatchAddEntity function core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php Tests EntityForm::getEntityFromRouteMatch() with a config entity bundle.
EntityFormTest::testGetEntityFromRouteMatchAddStatic function core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php Tests EntityForm::getEntityFromRouteMatch() with a static bundle.
EntityFormTest::testGetEntityFromRouteMatchEditDelete function core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php Tests EntityForm::getEntityFromRouteMatch() for edit and delete forms.
EntityInterface::getEntityType function core/lib/Drupal/Core/Entity/EntityInterface.php Gets the entity type definition.
EntityInterface::getEntityTypeId function core/lib/Drupal/Core/Entity/EntityInterface.php Gets the ID of the type of the entity.
EntityListBuilder::getEntityIds function core/lib/Drupal/Core/Entity/EntityListBuilder.php Loads entity IDs using a pager sorted by the entity id.
EntityListBuilder::getEntityListQuery function core/lib/Drupal/Core/Entity/EntityListBuilder.php Returns a query object for loading entity IDs from the storage.
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.
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 test entity.
EntityRevisionTestDestination::getEntityTypeId function core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php Gets the test entity ID.
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 Gets the test entity.
EntityTestDestination::getEntityTypeId function core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php Gets the test entity ID.
EntityTestHelper::getEntityTypes function core/modules/system/tests/modules/entity_test/src/EntityTestHelper.php Returns a list of test entity types.
EntityTestUpdateStorageSchema::getEntitySchema function core/modules/system/tests/modules/entity_test_update/src/EntityTestUpdateStorageSchema.php Gets the entity schema for the specified entity type.
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.

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