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.
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.
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 Returns the entity type of a configuration object.
ConfigManager::getEntityTypeManager function core/lib/Drupal/Core/Config/ConfigManager.php Gets the entity type manager.
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.
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[[api-linebreak]]
DefaultHtmlRouteProviderTest::testGetEntityTypeIdKeyTypeNotFieldable function core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php @covers ::getEntityTypeIdKeyType[[api-linebreak]]
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[[api-linebreak]]
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.
EntityBase::getEntityTypeId function core/lib/Drupal/Core/Entity/EntityBase.php Gets the ID of the type of the entity.
EntityBaseFieldOverride::getEntityId function core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php Gets the entity ID of the row.
EntityBlock::getEntityId function core/modules/block/src/Plugin/migrate/destination/EntityBlock.php Gets the entity ID of the row.
EntityConstraintViolationList::getEntity function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php The entity which has been validated.
EntityConstraintViolationList::getEntityViolations function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Gets violations flagged on entity level, not associated with any field.
EntityConstraintViolationListInterface::getEntity function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php The entity which has been validated.
EntityConstraintViolationListInterface::getEntityViolations function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Gets violations flagged on entity level, not associated with any field.
EntityContentComplete::getEntity function core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php Gets the entity.
EntityContextDefinition::getEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Returns the entity type ID of this context.
EntityController::doGetEntity function core/lib/Drupal/Core/Entity/Controller/EntityController.php Determines the entity.

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