Search for getEntityType

  1. Search 7.x for getEntityType
  2. Search 9.5.x for getEntityType
  3. Search 10.3.x for getEntityType
  4. Search 11.x for getEntityType
  5. Other projects
Title Object type File name Summary
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::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.
EntityResolverManager::getEntityTypes function core/lib/Drupal/Core/Entity/EntityResolverManager.php Gets the list of all entity types.
EntityRevisionTestDestination::getEntityTypeId function core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php Finds the entity type from configuration or plugin ID.
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.
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.
EntityTestDestination::getEntityTypeId function core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php Finds the entity type from configuration or plugin ID.
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
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
EntityUnitTest::testGetEntityTypeId function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::getEntityTypeId
FieldableEntityNormalizerTrait::getEntityTypeDefinition function core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php Gets the entity type definition.
FieldableEntityNormalizerTrait::getEntityTypeManager function core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php Returns the entity type manager.
FieldableEntityNormalizerTrait::getEntityTypeRepository function core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php Returns the entity type repository.
FieldConfigBase::getTargetEntityTypeId function core/lib/Drupal/Core/Field/FieldConfigBase.php Returns the ID of the entity type the field is attached to.
FieldConfigListBuilder::$targetEntityTypeId property core/modules/field_ui/src/FieldConfigListBuilder.php The name of the entity type the listed fields are 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.
FieldStorageConfig::getTargetEntityTypeId function core/modules/field/src/Entity/FieldStorageConfig.php Returns the ID of the entity type the field is attached to.
FieldStorageDefinitionInterface::getTargetEntityTypeId function core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php Returns the ID of the entity type the field is attached to.
HandlerBase::getEntityType function core/modules/views/src/Plugin/views/HandlerBase.php Determines the entity type used by this handler.
HandlerBaseTest::testGetEntityTypeForFieldOnBaseTable function core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php @covers ::getEntityType
HandlerBaseTest::testGetEntityTypeForFieldWithRelationship function core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php @covers ::getEntityType
JsonApiRegressionTest::testBundleSpecificTargetEntityTypeFromIssue2953207 function core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php Ensure filtering on relationships works with bundle-specific target types.
JsonApiRegressionTest::testDeepNestedIncludeMultiTargetEntityTypeFieldFromIssue2973681 function core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php Ensure deep nested include works on multi target entity type field.
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 Returns the entity type manager.
ModerationInformationTest::getEntityTypeManager function core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php Returns a mock Entity Type Manager.
OverridesSectionStorage::getEntityTypes function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php Returns an array of relevant entity types.
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.
RdfMapping::$targetEntityType property core/modules/rdf/src/Entity/RdfMapping.php Entity type to be mapped.
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 Returns the entity type manager.

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