Search for getEntity

  1. Search 7.x for getEntity
  2. Search 8.9.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
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.
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.
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.
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.
EntityStorageDeprecationTest::testGetEntityClass function core/tests/Drupal/Tests/Core/Entity/EntityStorageDeprecationTest.php Tests the deprecation when accessing entityClass directly.
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.
EntityTest::getEntityKey function core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php Gets the value of the given entity key, if defined.
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.
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[[api-linebreak]]
EntityTypeRepositoryTest::testGetEntityTypeFromClassAmbiguous function core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php @covers ::getEntityTypeFromClass[[api-linebreak]]
EntityTypeRepositoryTest::testGetEntityTypeFromClassNoMatch function core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php @covers ::getEntityTypeFromClass[[api-linebreak]]
EntityTypeRepositoryTest::testGetEntityTypeLabels function core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php Tests the getEntityTypeLabels() method.
EntityUnitTest::testGetEntityType function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::getEntityType[[api-linebreak]]
EntityUnitTest::testGetEntityTypeId function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::getEntityTypeId[[api-linebreak]]
EntityUrlTest::getEntity function core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php Returns a mock entity for testing.
FieldConfigBase::getTargetEntityTypeId function core/lib/Drupal/Core/Field/FieldConfigBase.php Returns the ID of the entity type the field is attached to.
FieldDefinition::getTargetEntityTypeId function core/lib/Drupal/Core/Field/FieldDefinition.php Returns the ID of the entity type the field is attached to.
FieldDefinitionInterface::getTargetEntityTypeId function core/lib/Drupal/Core/Field/FieldDefinitionInterface.php Returns the ID of the entity type the field is attached to.
FieldEntityTest::testGetEntity function core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php Tests the getEntity method.
FieldItemBase::getEntity function core/lib/Drupal/Core/Field/FieldItemBase.php Gets the entity that field belongs to.
FieldItemInterface::getEntity function core/lib/Drupal/Core/Field/FieldItemInterface.php Gets the entity that field belongs to.
FieldItemList::getEntity function core/lib/Drupal/Core/Field/FieldItemList.php Gets the entity that field belongs to.
FieldItemListInterface::getEntity function core/lib/Drupal/Core/Field/FieldItemListInterface.php Gets the entity that field belongs to.
FieldStorageDefinitionInterface::getTargetEntityTypeId function core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php Returns the ID of the entity type the field is attached to.
FileEntityNormalizer::getEntityUri function core/modules/hal/src/Normalizer/FileEntityNormalizer.php Constructs the entity URI.

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