Search for getEntity

  1. Search 7.x for getEntity
  2. Search 9.5.x for getEntity
  3. Search 10.3.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::getEntityManager function core/modules/views/src/Plugin/views/field/BulkForm.php
BulkForm::getEntityRepository function core/modules/views/src/Plugin/views/field/BulkForm.php Returns the entity repository.
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 Returns the entity type manager.
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.
ConfigManager::getEntityManager function core/lib/Drupal/Core/Config/ConfigManager.php Gets the entity manager.
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::getEntityManager function core/lib/Drupal/Core/Config/ConfigManagerInterface.php Gets the entity 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.
ContentEntityNormalizer::getEntityUri function core/modules/hal/src/Normalizer/ContentEntityNormalizer.php Constructs the entity URI.
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.
DataEntityRow::getEntityManager function core/modules/rest/src/Plugin/views/row/DataEntityRow.php
DataEntityRow::getEntityRepository function core/modules/rest/src/Plugin/views/row/DataEntityRow.php Returns the entity repository.
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 Returns the entity type manager.
DefaultContentModerationStateRevisionUpdateTest::getEntityByLabel function core/modules/content_moderation/tests/src/Functional/Update/DefaultContentModerationStateRevisionUpdateTest.php Load an entity by label.
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.
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.
EntityBase::getEntityTypeId function core/lib/Drupal/Core/Entity/EntityBase.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.