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 11.x for getEntity
  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.
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 Loads entity IDs using a pager sorted by the entity id.
BlockListBuilder::getEntityIds function core/modules/block/src/BlockListBuilder.php Loads entity IDs using a pager sorted by the entity id.
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 Returns the entity type identifier.
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 Gets the URI elements of the entity.
CommentStorageSchema::getEntitySchema function core/modules/comment/src/CommentStorageSchema.php Gets the entity schema for the specified entity type.
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.
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 Gets the entity instance for this mapper.
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 Retrieves the class name used to create the entity.
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
ContentModeration::getEntityTypes function core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php Gets the entity types the workflow is applied to.
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 Gets the entity schema for the specified entity type.
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 Gets the expected number of entities per entity type after migration.
CredentialFormTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/CredentialFormTest.php Gets expected number of entities per entity after incremental migration.
DataEntityRow::getEntityRepository function core/modules/rest/src/Plugin/views/row/DataEntityRow.php
DataEntityRow::getEntityTypeId function core/modules/rest/src/Plugin/views/row/DataEntityRow.php Returns the entity type identifier.
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 Determines which entity will be used by this form from a RouteMatch object.
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 Gets the expected number of entities per entity type after migration.
DoubleSlashTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php Gets expected number of entities per entity after incremental migration.
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 Gets the entity type definition.

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