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
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.
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.
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]]
DynamicEntityTypeParamConverterTrait::getEntityTypeFromDefaults function core/lib/Drupal/Core/ParamConverter/DynamicEntityTypeParamConverterTrait.php Determines the entity type ID given a route definition and route defaults.
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.
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.
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.
EntityDataDefinition::getEntityTypeId function core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php Gets the entity type ID.
EntityDataDefinitionInterface::getEntityTypeId function core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php Gets the entity type ID.
EntityDefinitionUpdateManager::getEntityType function core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php Returns an entity type definition ready to be manipulated.
EntityDefinitionUpdateManager::getEntityTypes function core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php Returns all the entity type definitions, ready to be manipulated.
EntityDefinitionUpdateManagerInterface::getEntityType function core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php Returns an entity type definition ready to be manipulated.
EntityDefinitionUpdateManagerInterface::getEntityTypes function core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php Returns all the entity type definitions, ready to be manipulated.
EntityDeleteFormTrait::getEntity function core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php Gets the entity of this form.
EntityDisplayBase::$targetEntityType property core/lib/Drupal/Core/Entity/EntityDisplayBase.php Entity type to be displayed.
EntityDisplayBase::getTargetEntityTypeId function core/lib/Drupal/Core/Entity/EntityDisplayBase.php Gets the entity type for which this display is used.
EntityDisplayBaseMockableClass::getEntityType function core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php Gets the entity type definition.
EntityDisplayBaseTest::testGetTargetEntityTypeId function core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php @covers ::getTargetEntityTypeId[[api-linebreak]]
EntityDisplayInterface::getTargetEntityTypeId function core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php Gets the entity type for which this display is used.
EntityDisplayModeBase::$targetEntityType property core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php The entity type this form or view mode is used for.
EntityForm::getEntity function core/lib/Drupal/Core/Entity/EntityForm.php Gets the form entity.
EntityForm::getEntityFromRouteMatch function core/lib/Drupal/Core/Entity/EntityForm.php Determines which entity will be used by this form from a RouteMatch object.
EntityFormDisplayAccessControlHandlerTest::getEntityTypeManager function core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php Returns a mock Entity Type Manager.
EntityFormInterface::getEntity function core/lib/Drupal/Core/Entity/EntityFormInterface.php Gets the form entity.
EntityFormInterface::getEntityFromRouteMatch function core/lib/Drupal/Core/Entity/EntityFormInterface.php Determines which entity will be used by this form from a RouteMatch object.
EntityFormTest::testGetEntityFromRouteMatchAdd function core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php Tests EntityForm::getEntityFromRouteMatch() for add forms without a bundle.
EntityFormTest::testGetEntityFromRouteMatchAddEntity function core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php Tests EntityForm::getEntityFromRouteMatch() with a config entity bundle.
EntityFormTest::testGetEntityFromRouteMatchAddStatic function core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php Tests EntityForm::getEntityFromRouteMatch() with a static bundle.
EntityFormTest::testGetEntityFromRouteMatchEditDelete function core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php Tests EntityForm::getEntityFromRouteMatch() for edit and delete forms.
EntityInterface::getEntityType function core/lib/Drupal/Core/Entity/EntityInterface.php Gets the entity type definition.
EntityInterface::getEntityTypeId function core/lib/Drupal/Core/Entity/EntityInterface.php Gets the ID of the type of the entity.
EntityListBuilder::getEntityIds function core/lib/Drupal/Core/Entity/EntityListBuilder.php Loads entity IDs using a pager sorted by the entity id.

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