Search for getEntityType

  1. Search 7.x for getEntityType
  2. Search 9.5.x for getEntityType
  3. Search 8.9.x for getEntityType
  4. Search 10.3.x for getEntityType
  5. Other projects
Title Object type File name Summary
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.
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
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.
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
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.
FieldTypePluginManager::getEntityTypeUiDefinitions function core/lib/Drupal/Core/Field/FieldTypePluginManager.php Get the field type definitions that can be added via UI for an entity type.
FieldTypePluginManagerInterface::getEntityTypeUiDefinitions function core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php Get the field type definitions that can be added via UI for an entity type.
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
JsonApiFilterRegressionTest::testBundleSpecificTargetEntityTypeFromIssue2953207 function core/modules/jsonapi/tests/src/Functional/JsonApiFilterRegressionTest.php Ensure filtering on relationships works with bundle-specific target types.
JsonApiPatchRegressionTest::testBundleSpecificTargetEntityTypeFromIssue2953207 function core/modules/jsonapi/tests/src/Functional/JsonApiPatchRegressionTest.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
ModerationInformationTest::getEntityTypeManager function core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php Returns a mock Entity Type Manager.
NodeReference::getEntityTypeMigrationId function core/modules/migrate_drupal/src/Plugin/migrate/field/d6/NodeReference.php Gets the plugin ID for the reference type migration.
NodeReference::getEntityTypeMigrationId function core/modules/migrate_drupal/src/Plugin/migrate/field/d7/NodeReference.php Gets the plugin ID for the reference type migration.
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.
ReferenceBase::getEntityTypeMigrationId function core/modules/migrate_drupal/src/Plugin/migrate/field/ReferenceBase.php Gets the plugin ID for the reference type migration.

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