Search for getEntity

  1. Search 7.x for getEntity
  2. Search 8.9.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
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
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.
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
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
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
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
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
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
FieldStorageConfig::getTargetEntityTypeId function core/modules/field/src/Entity/FieldStorageConfig.php
FieldStorageConfigEditForm::getEntityFromRouteMatch function core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php
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
FilePathTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
FilePathTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
HandlerBase::getEntityType function core/modules/views/src/Plugin/views/HandlerBase.php
HandlerBaseTest::testGetEntityTypeForFieldOnBaseTable function core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php @covers ::getEntityType[[api-linebreak]]
HandlerBaseTest::testGetEntityTypeForFieldWithRelationship function core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php @covers ::getEntityType[[api-linebreak]]
IdConflictTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
IdConflictTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
IdConflictTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d6/IdConflictTest.php
IdConflictTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d7/IdConflictTest.php
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[[api-linebreak]]
LayoutSectionItemList::getEntity function core/modules/layout_builder/src/Field/LayoutSectionItemList.php
LinkBase::getEntityRepository function core/modules/views/src/Plugin/views/field/LinkBase.php
LinkBase::getEntityTypeId function core/modules/views/src/Plugin/views/field/LinkBase.php
LinkBase::getEntityTypeManager function core/modules/views/src/Plugin/views/field/LinkBase.php
MediaLibraryAccessTest::providerFieldWidgetEntityFieldAccess function core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php Data provider for ::testFieldWidgetEntityFieldAccess().

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