Search for getEntityTypeId

  1. Search 7.x for getEntityTypeId
  2. Search 9.5.x for getEntityTypeId
  3. Search 8.9.x for getEntityTypeId
  4. Search 10.3.x for getEntityTypeId
  5. Other projects
Title Object type File name Summary
BaseFieldDefinition::getTargetEntityTypeId function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns the ID of the entity type the field is attached to.
BaseFieldDefinition::setTargetEntityTypeId function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Sets the ID of the type of the entity this field is attached to.
Book::getEntityTypeId function core/modules/book/src/Plugin/migrate/destination/Book.php Finds the entity type from configuration or plugin ID.
BulkForm::getEntityTypeId function core/modules/views/src/Plugin/views/field/BulkForm.php Returns the entity type identifier.
CommentType::getTargetEntityTypeId function core/modules/comment/src/Entity/CommentType.php Gets the target entity type id for this comment type.
CommentTypeInterface::getTargetEntityTypeId function core/modules/comment/src/CommentTypeInterface.php Gets the target entity type id for this comment type.
ConfigManager::getEntityTypeIdByName function core/lib/Drupal/Core/Config/ConfigManager.php Returns the entity type of a configuration object.
ConfigManagerInterface::getEntityTypeIdByName function core/lib/Drupal/Core/Config/ConfigManagerInterface.php Returns the entity type of a configuration object.
ContentLanguageSettings::getTargetEntityTypeId function core/modules/language/src/Entity/ContentLanguageSettings.php Gets the entity type ID this config applies to.
ContentLanguageSettingsInterface::getTargetEntityTypeId function core/modules/language/src/ContentLanguageSettingsInterface.php Gets the entity type ID this config applies to.
ContentLanguageSettingsUnitTest::testTargetEntityTypeId function core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php @covers ::getTargetEntityTypeId
DataEntityRow::getEntityTypeId function core/modules/rest/src/Plugin/views/row/DataEntityRow.php Returns the entity type identifier.
DefaultHtmlRouteProvider::getEntityTypeIdKeyType function core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php Gets the type of the ID key for a given entity type.
DefaultHtmlRouteProviderTest::testGetEntityTypeIdKeyType function core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php @covers ::getEntityTypeIdKeyType
DefaultHtmlRouteProviderTest::testGetEntityTypeIdKeyTypeNotFieldable function core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php @covers ::getEntityTypeIdKeyType
EntityBase::getEntityTypeId function core/lib/Drupal/Core/Entity/EntityBase.php Gets the ID of the type of the entity.
EntityContextDefinition::getEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Returns the entity type ID of this context.
EntityDataDefinition::getEntityTypeId function core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php Gets the entity type ID.
EntityDataDefinitionInterface::getEntityTypeId function core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php Gets the entity type ID.
EntityDisplayBase::getTargetEntityTypeId function core/lib/Drupal/Core/Entity/EntityDisplayBase.php Gets the entity type for which this display is used.
EntityDisplayBaseTest::testGetTargetEntityTypeId function core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php @covers ::getTargetEntityTypeId
EntityDisplayInterface::getTargetEntityTypeId function core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php Gets the entity type for which this display is used.
EntityDisplayModeFormBase::$targetEntityTypeId property core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php The entity type for which the display mode is being created or edited.
EntityFieldDefinitionTrait::getEntityTypeId function core/modules/migrate/src/EntityFieldDefinitionTrait.php Finds the entity type from configuration or plugin ID.
EntityFieldRenderer::getEntityTypeId function core/modules/views/src/Entity/Render/EntityFieldRenderer.php Returns the entity type identifier.
EntityInterface::getEntityTypeId function core/lib/Drupal/Core/Entity/EntityInterface.php Gets the ID of the type of the entity.
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.
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.
EntityStorageBase::getEntityTypeId function core/lib/Drupal/Core/Entity/EntityStorageBase.php Gets the entity type ID.
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.
EntityUnitTest::testGetEntityTypeId function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::getEntityTypeId
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.
LinkBase::getEntityTypeId function core/modules/views/src/Plugin/views/field/LinkBase.php Returns the entity type identifier.
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.
RenderedEntity::getEntityTypeId function core/modules/views/src/Plugin/views/field/RenderedEntity.php Returns the entity type identifier.
ResourceType::getEntityTypeId function core/modules/jsonapi/src/ResourceType/ResourceType.php Gets the entity type ID.
TestDefaultHtmlRouteProvider::getEntityTypeIdKeyType function core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php Gets the type of the ID key for a given entity type.
ViewUI::getEntityTypeId function core/modules/views_ui/src/ViewUI.php Gets the ID of the type of the entity.

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