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
EntityTypeRepositoryTest::testGetEntityTypeLabels function core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php Tests the getEntityTypeLabels() method.
EntityUnitTest::testGetEntityType function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::getEntityType
EntityUnitTest::testGetEntityTypeId function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::getEntityTypeId
EntityUrlTest::getEntity function core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php Returns a mock entity for testing.
EntityViewDisplayEditForm::getEntityDisplay function core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php Returns an entity display object to be used by this form.
ExtraFieldBlock::getEntity function core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php Gets the entity that has the field.
FieldableEntity::getEntityTranslationSourceLanguage function core/modules/migrate_drupal/src/Plugin/migrate/source/d7/FieldableEntity.php Gets an entity source language from the 'entity_translation' table.
FieldableEntityNormalizerTrait::getEntityFieldManager function core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php Returns the entity field manager.
FieldableEntityNormalizerTrait::getEntityTypeDefinition function core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php Gets the entity type definition.
FieldableEntityNormalizerTrait::getEntityTypeManager function core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php Returns the entity type manager.
FieldableEntityNormalizerTrait::getEntityTypeRepository function core/modules/serialization/src/Normalizer/FieldableEntityNormalizerTrait.php Returns the entity type repository.
FieldAPIHandlerTrait::getEntityFieldManager function core/modules/views/src/FieldAPIHandlerTrait.php Returns the entity field manager.
FieldAPIHandlerTrait::getEntityManager function core/modules/views/src/FieldAPIHandlerTrait.php Returns the entity manager.
FieldBlock::getEntity function core/modules/layout_builder/src/Plugin/Block/FieldBlock.php Gets the entity that has the field.
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.
FieldDiscovery::getEntityFields function core/modules/migrate_drupal/src/FieldDiscovery.php Gets all field information for a particular entity type.
FieldDiscoveryTest::getEntityFieldsData function core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php Provides data for testGetEntityFields.
FieldDiscoveryTest::testGetEntityFields function core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php Tests the protected getEntityFields method.
FieldDiscoveryTestClass::getEntityFields function core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php Gets all field information for a particular entity type.
FieldEntityTest::testGetEntity function core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php Tests the getEntity method.
FieldHandlerInterface::getEntity function core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php Gets the entity matching the current row and relationship.
FieldItemBase::getEntity function core/lib/Drupal/Core/Field/FieldItemBase.php Gets the entity that field belongs to.
FieldItemInterface::getEntity function core/lib/Drupal/Core/Field/FieldItemInterface.php Gets the entity that field belongs to.
FieldItemList::getEntity function core/lib/Drupal/Core/Field/FieldItemList.php Gets the entity that field belongs to.
FieldItemListInterface::getEntity function core/lib/Drupal/Core/Field/FieldItemListInterface.php Gets the entity that field belongs to.
FieldLayoutEntityDisplayFormTrait::getEntity function core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php Gets the form entity.
FieldPluginBase::getEntity function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Gets the entity matching the current row and relationship.
FieldStorageConfig::getTargetEntityTypeId function core/modules/field/src/Entity/FieldStorageConfig.php Returns the ID of the entity type the field is attached to.
FieldStorageConfigEditForm::getEntityFromRouteMatch function core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php Determines which entity will be used by this form from a RouteMatch object.
FieldStorageDefinitionInterface::getTargetEntityTypeId function core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php Returns the ID of the entity type the field is attached to.
FileEntityNormalizer::getEntityUri function core/modules/hal/src/Normalizer/FileEntityNormalizer.php Constructs the entity URI.
HandlerBase::getEntityType function core/modules/views/src/Plugin/views/HandlerBase.php Determines the entity type used by this handler.
HandlerBaseTest::testGetEntityTypeForFieldOnBaseTable function core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php @covers ::getEntityType
HandlerBaseTest::testGetEntityTypeForFieldWithRelationship function core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php @covers ::getEntityType
IdConflictTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php Gets the expected number of entities per entity type after migration.
IdConflictTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php Gets the expected number of entities per entity type after migration.
IdConflictTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php Gets expected number of entities per entity after incremental migration.
IdConflictTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php Gets expected number of entities per entity after incremental migration.
ImageItem::getEntityManager function core/modules/image/src/Plugin/Field/FieldType/ImageItem.php Gets the entity manager.
InlineBlock::getEntity function core/modules/layout_builder/src/Plugin/Block/InlineBlock.php Loads or creates the block content entity of the block.
JsonApiRegressionTest::testBundleSpecificTargetEntityTypeFromIssue2953207 function core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php Ensure filtering on relationships works with bundle-specific target types.
JsonApiRegressionTest::testDeepNestedIncludeMultiTargetEntityTypeFieldFromIssue2973681 function core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php Ensure deep nested include works on multi target entity type field.
LabelOnlyResourceObject::getEntity function core/modules/jsonapi/src/JsonApiResource/LabelOnlyResourceObject.php Gets the decorated entity.
LayoutEntityHelperTrait::getEntitySections function core/modules/layout_builder/src/LayoutEntityHelperTrait.php Gets the sections for an entity if any.
LayoutEntityHelperTraitTest::testGetEntitySections function core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php @covers ::getEntitySections
LayoutSectionItemList::getEntity function core/modules/layout_builder/src/Field/LayoutSectionItemList.php Gets the entity that field belongs to.
LinkBase::getEntityRepository function core/modules/views/src/Plugin/views/field/LinkBase.php Returns the entity repository.

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