Search for from

  1. Search 7.x for from
  2. Search 9.5.x for from
  3. Search 10.3.x for from
  4. Search 11.x for from
  5. Other projects
Title Object type File name Summary
DefaultsSectionStorageTest::testLoadFromDisplay function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php Tests loading given a display.
Dependency::createFromString function core/lib/Drupal/Core/Extension/Dependency.php Creates a new instance of this class from a dependency string.
DependencyTest::providerCreateFromString function core/tests/Drupal/Tests/Core/Extension/DependencyTest.php Data provider for testCreateFromString.
DependencyTest::testCreateFromString function core/tests/Drupal/Tests/Core/Extension/DependencyTest.php @covers ::createFromString
@dataProvider providerCreateFromString
DrupalCoreComposer::createFromPath function composer/Generator/Util/DrupalCoreComposer.php DrupalCoreComposer factory.
DrupalCoreComposer::loadJsonFromPath function composer/Generator/Util/DrupalCoreComposer.php Load json data from the specified path.
DrupalKernel::createFromRequest function core/lib/Drupal/Core/DrupalKernel.php Create a DrupalKernel object from a request.
DynamicEntityTypeParamConverterTrait::getEntityTypeFromDefaults function core/lib/Drupal/Core/ParamConverter/DynamicEntityTypeParamConverterTrait.php Determines the entity type ID given a route definition and route defaults.
EnforcedResponse::createFromException function core/lib/Drupal/Core/Form/EnforcedResponse.php Constructs a new enforced response from the given exception.
EntityAdapter::createFromEntity function core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php Creates an instance wrapping the given entity.
EntityAutocomplete::extractEntityIdFromAutocompleteInput function core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php Extracts the entity ID from the autocompletion result.
EntityChangesDetectionTrait::getFieldsToSkipFromTranslationChangesCheck function core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php Returns an array of field names to skip when checking for changes.
EntityCondition::createFromQueryParameter function core/modules/jsonapi/src/Query/EntityCondition.php Creates an EntityCondition object from a query parameter.
EntityConditionTest::testCreateFromQueryParameter function core/modules/jsonapi/tests/src/Unit/Query/EntityConditionTest.php @covers ::createFromQueryParameter
@dataProvider queryParameterProvider
EntityContext::fromEntity function core/lib/Drupal/Core/Plugin/Context/EntityContext.php Gets a context object from an entity.
EntityContext::fromEntityType function core/lib/Drupal/Core/Plugin/Context/EntityContext.php Gets a context from an entity type.
EntityContext::fromEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContext.php Gets a context from an entity type ID.
EntityContextDefinition::fromEntity function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Creates a context definition from a given entity object.
EntityContextDefinition::fromEntityType function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Creates a context definition from a given entity type.
EntityContextDefinition::fromEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Creates a context definition from a given entity type ID.
EntityDataDefinition::createFromDataType function core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinition.php Creates a new data definition object.
EntityDefinitionUpdateTest::initialValueFromFieldTestCases function core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php Test cases for ::testInitialValueFromField.
EntityDefinitionUpdateTest::testInitialValueFromField function core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php Tests adding a base field with initial values inherited from another field.
EntityDefinitionUpdateTest::testInitialValueFromFieldErrorHandling function core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php Tests the error handling when using initial values from another field.
EntityDisplayFormBase::getEntityFromRouteMatch function core/modules/field_ui/src/Form/EntityDisplayFormBase.php Determines which entity will be used by this form from a RouteMatch object.
EntityFieldDefinitionTrait::getDefinitionFromEntity function core/modules/migrate/src/EntityFieldDefinitionTrait.php Gets the field definition from a specific entity base field.
EntityFieldManagerTest::testGetFieldMapFromCache function core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php @covers ::getFieldMap
EntityForm::getEntityFromRouteMatch function core/lib/Drupal/Core/Entity/EntityForm.php Determines which entity will be used by this form from a RouteMatch object.
EntityFormDisplay::flagWidgetsErrorsFromViolations function core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php Flags entity validation violations as form errors.
EntityFormDisplayInterface::flagWidgetsErrorsFromViolations function core/lib/Drupal/Core/Entity/Display/EntityFormDisplayInterface.php Flags entity validation violations as form errors.
EntityFormDisplayTest::testEntityGetFromDisplay function core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php @covers \Drupal\Core\Entity\EntityDisplayRepository::getFormDisplay
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.
EntityManager::getEntityTypeFromClass function core/lib/Drupal/Core/Entity/EntityManager.php
EntityManager::getTranslationFromContext function core/lib/Drupal/Core/Entity/EntityManager.php
EntityManagerTest::testGetEntityTypeFromClass function core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php Tests the getEntityTypeFromClass() method.
EntityManagerTest::testGetTranslationFromContext function core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php Tests the getTranslationFromContext() method.
EntityOperations::updateOrCreateFromEntity function core/modules/content_moderation/src/EntityOperations.php Creates or updates the moderation state of an entity.
EntityRepository::getContentLanguageFromContexts function core/lib/Drupal/Core/Entity/EntityRepository.php Retrieves the current content language from the specified contexts.
EntityRepository::getTranslationFromContext function core/lib/Drupal/Core/Entity/EntityRepository.php Gets the entity translation to be used in the given context.
EntityRepositoryInterface::getTranslationFromContext function core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php Gets the entity translation to be used in the given context.
EntityRepositoryTest::testGetTranslationFromContext function core/tests/Drupal/Tests/Core/Entity/EntityRepositoryTest.php Tests the getTranslationFromContext() method.
EntityResolverManager::setParametersFromEntityInformation function core/lib/Drupal/Core/Entity/EntityResolverManager.php Sets the upcasting information using the _entity_* route defaults.
EntityResolverManager::setParametersFromReflection function core/lib/Drupal/Core/Entity/EntityResolverManager.php Sets the upcasting information using reflection.
EntityResource::getEntityFromResourceIdentifier function core/modules/jsonapi/src/Controller/EntityResource.php Loads the entity targeted by a resource identifier.
EntityResource::removeFromRelationshipData function core/modules/jsonapi/src/Controller/EntityResource.php Deletes the relationship of an entity.
EntityStorageBase::getFromStaticCache function core/lib/Drupal/Core/Entity/EntityStorageBase.php Gets entities from the static cache.

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