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 10.3.x for getEntity
  5. Other projects
Title Object type File name Summary
EntityTypeRepositoryTest::testGetEntityTypeFromClassAmbiguousBundleClass function core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php @covers ::getEntityTypeFromClass
EntityTypeRepositoryTest::testGetEntityTypeFromClassNoMatch function core/tests/Drupal/Tests/Core/Entity/EntityTypeRepositoryTest.php @covers ::getEntityTypeFromClass
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
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.
FieldEntityTest::testGetEntity function core/modules/views/tests/src/Kernel/Entity/FieldEntityTest.php Tests the getEntity method.
FieldEntityTest::testGetEntityNullEntityOptionalRelationship function core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php Tests the getEntity method returning NULL for an optional relationship.
FieldEntityTest::testGetEntityNullEntityOptionalRelationship function core/modules/views/tests/src/Kernel/Entity/FieldEntityTest.php Tests the getEntity method returning NULL for an optional relationship.
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.
FieldTypePluginManager::getEntityTypeUiDefinitions function core/lib/Drupal/Core/Field/FieldTypePluginManager.php
FieldTypePluginManagerInterface::getEntityTypeUiDefinitions function core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php Get the field type definitions that can be added via UI for an entity type.
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
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
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.
JsonApiFilterRegressionTest::testBundleSpecificTargetEntityTypeFromIssue2953207 function core/modules/jsonapi/tests/src/Functional/JsonApiFilterRegressionTest.php Ensure filtering on relationships works with bundle-specific target types.

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