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
BaseFieldDefinition::getTargetEntityTypeId function core/lib/Drupal/Core/Field/BaseFieldDefinition.php
BaseFieldDefinition::setTargetEntityTypeId function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Sets the ID of the type of the entity this field is attached to.
BlockContentBlock::getEntity function core/modules/block_content/src/Plugin/Block/BlockContentBlock.php Loads the block content entity of the block.
BlockContentListBuilder::getEntityIds function core/modules/block_content/src/BlockContentListBuilder.php
BlockListBuilder::getEntityIds function core/modules/block/src/BlockListBuilder.php
Book::getEntityTypeId function core/modules/book/src/Plugin/migrate/destination/Book.php Finds the entity type from configuration or plugin ID.
BulkForm::getEntityRepository function core/modules/views/src/Plugin/views/field/BulkForm.php
BulkForm::getEntityTypeId function core/modules/views/src/Plugin/views/field/BulkForm.php
BulkForm::getEntityTypeManager function core/modules/views/src/Plugin/views/field/BulkForm.php
CommentBundlesTest::$targetEntityTypes property core/modules/comment/tests/src/Kernel/CommentBundlesTest.php Entity type ids to use for target_entity_type_id on comment bundles.
CommentPermalinkFormatter::getEntityUrl function core/modules/comment/src/Plugin/Field/FieldFormatter/CommentPermalinkFormatter.php
CommentStorageSchema::getEntitySchema function core/modules/comment/src/CommentStorageSchema.php
CommentType::getTargetEntityTypeId function core/modules/comment/src/Entity/CommentType.php
CommentTypeInterface::getTargetEntityTypeId function core/modules/comment/src/CommentTypeInterface.php Gets the target entity type id for this comment type.
ComponentEntityDisplayBase::getEntity function core/modules/migrate/src/Plugin/migrate/destination/ComponentEntityDisplayBase.php Gets the entity.
ConfigEntityMapper::getEntity function core/modules/config_translation/src/ConfigEntityMapper.php
ConfigEntityMapperInterface::getEntity function core/modules/config_translation/src/ConfigEntityMapperInterface.php Gets the entity instance for this mapper.
ConfigManager::getEntityTypeIdByName function core/lib/Drupal/Core/Config/ConfigManager.php
ConfigManager::getEntityTypeManager function core/lib/Drupal/Core/Config/ConfigManager.php
ConfigManagerInterface::getEntityTypeIdByName function core/lib/Drupal/Core/Config/ConfigManagerInterface.php Returns the entity type of a configuration object.
ConfigManagerInterface::getEntityTypeManager function core/lib/Drupal/Core/Config/ConfigManagerInterface.php Gets the entity type manager.
ContentEntityBase::getEntityKey function core/lib/Drupal/Core/Entity/ContentEntityBase.php Gets the value of the given entity key, if defined.
ContentEntityStorageBase::getEntityClass function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
ContentLanguageSettings::getTargetEntityTypeId function core/modules/language/src/Entity/ContentLanguageSettings.php
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
ContentModeration::getEntityTypes function core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
ContentModerationInterface::getEntityTypes function core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php Gets the entity types the workflow is applied to.
ContentModerationStateStorageSchema::getEntitySchema function core/modules/content_moderation/src/ContentModerationStateStorageSchema.php
ContentTranslationWorkflowsTest::getEntityOwnerPermissions function core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php Returns an array of permissions needed for the entity owner.
CredentialFormTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/CredentialFormTest.php
CredentialFormTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/CredentialFormTest.php
DataEntityRow::getEntityRepository function core/modules/rest/src/Plugin/views/row/DataEntityRow.php
DataEntityRow::getEntityTypeId function core/modules/rest/src/Plugin/views/row/DataEntityRow.php
DataEntityRow::getEntityTypeManager function core/modules/rest/src/Plugin/views/row/DataEntityRow.php
DefaultHtmlRouteProvider::getEntityTypeIdKeyType function core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php Gets the type of the ID key for a given entity type.
DefaultHtmlRouteProviderTest::getEntityType function core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php
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
DefaultsEntityForm::getEntityFromRouteMatch function core/modules/layout_builder/src/Form/DefaultsEntityForm.php
DefaultsSectionStorage::getEntityTypes function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Returns an array of relevant entity types.
DoubleSlashTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php
DoubleSlashTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php
DynamicEntityTypeParamConverterTrait::getEntityTypeFromDefaults function core/lib/Drupal/Core/ParamConverter/DynamicEntityTypeParamConverterTrait.php Determines the entity type ID given a route definition and route defaults.
Entity::getEntity function core/modules/migrate/src/Plugin/migrate/destination/Entity.php Creates or loads an entity.
Entity::getEntityId function core/modules/migrate/src/Plugin/migrate/destination/Entity.php Gets the entity ID of the row.
EntityAdapter::getEntity function core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php Returns the wrapped entity object.
EntityAdapterUnitTest::testGetEntity function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::getEntity
EntityAutocomplete::getEntityLabels function core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php Converts an array of entity objects into a string of entity labels.
EntityBase::getEntityType function core/lib/Drupal/Core/Entity/EntityBase.php

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