Search for from

  1. Search 7.x for from
  2. Search 9.5.x for from
  3. Search 8.9.x for from
  4. Search 10.3.x for from
  5. Other projects
Title Object type File name Summary
Cookie::getUserFromSession function core/modules/user/src/Authentication/Provider/Cookie.php Returns the UserSession object for the given session.
CountryCodeConstraintTest::testConstraintLoadsChoicesFromCountryManager function core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraintTest.php
CredentialFormTest::testCredentialFrom function core/modules/migrate_drupal_ui/tests/src/Functional/CredentialFormTest.php Test the credential form.
CurrentRouteMatch::getRouteMatchFromRequest function core/lib/Drupal/Core/Routing/CurrentRouteMatch.php Returns a route match from a given request, if possible.
CurrentRouteMatchTest::testGetRouteMatchFromRequest function core/tests/Drupal/Tests/Core/Routing/CurrentRouteMatchTest.php @covers ::getRouteMatchFromRequest
CurrentRouteMatchTest::testGetRouteMatchFromRequestWithRouting function core/tests/Drupal/Tests/Core/Routing/CurrentRouteMatchTest.php @covers ::getRouteMatchFromRequest
DataDefinition::createFromDataType function core/lib/Drupal/Core/TypedData/DataDefinition.php
DataDefinitionInterface::createFromDataType function core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php Creates a new data definition object.
DataFieldRow::extractFromOptionsArray function core/modules/rest/src/Plugin/views/row/DataFieldRow.php Extracts a set of option values from a nested options array.
DataReferenceDefinition::createFromDataType function core/lib/Drupal/Core/TypedData/DataReferenceDefinition.php Creates a new data definition object.
DateRangeFieldTest::doTestFromToSetting function core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php Performs the test of the 'from_to' setting for given test data.
DateRangeFieldTest::fromToSettingDataProvider function core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php Provides data for testing the 'from_to' setting.
DateRangeFieldTest::testFromSetting function core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php Tests displaying dates with the 'from_to' setting.
DateRangeFieldTest::testFromToSeparatorState function core/modules/datetime_range/tests/src/FunctionalJavascript/DateRangeFieldTest.php Tests the conditional visibility of the 'Date separator' field.
DateTimeHandlerTestBase::getRelativeDateValuesFromTimestamp function core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php Returns an array formatted date_only values relative to timestamp.
DateTimePlus::createFromArray function core/lib/Drupal/Component/Datetime/DateTimePlus.php Creates a date object from an array of date parts.
DateTimePlus::createFromDateTime function core/lib/Drupal/Component/Datetime/DateTimePlus.php Creates a date object from an input date object.
DateTimePlus::createFromFormat function core/lib/Drupal/Component/Datetime/DateTimePlus.php Creates a date object from an input format.
DateTimePlus::createFromTimestamp function core/lib/Drupal/Component/Datetime/DateTimePlus.php Creates a date object from timestamp input.
DateTimeRangeTrait::getFromToOptions function core/modules/datetime_range/src/DateTimeRangeTrait.php Returns a list of possible values for the 'from_to' setting.
DefaultPluginManager::extractProviderFromDefinition function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Extracts the provider from a plugin definition.
DefaultsEntityForm::getEntityFromRouteMatch function core/modules/layout_builder/src/Form/DefaultsEntityForm.php Determines which entity will be used by this form from a RouteMatch object.
DefaultsSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Derives the available plugin contexts from route values.
DefaultsSectionStorage::extractEntityFromRoute function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Extracts an entity from the route values.
DefaultsSectionStorageTest::providerTestExtractEntityFromRoute function core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php Provides data for ::testExtractEntityFromRoute().
DefaultsSectionStorageTest::testExtractEntityFromRoute function core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php @covers ::extractEntityFromRoute
DefaultsSectionStorageTest::testExtractEntityFromRouteCreate function core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php @covers ::extractEntityFromRoute
DefaultsSectionStorageTest::testLoadFromDisplay function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php Tests loading given a display.
DeleteTruncateTest::testDeleteFromNonExistingTable function core/tests/Drupal/KernelTests/Core/Database/DeleteTruncateTest.php Deleting from a not existing table throws a DatabaseExceptionWrapper.
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.
EnableLayoutBuilderTrait::disableLayoutBuilderFromUi function core/modules/layout_builder/tests/src/Traits/EnableLayoutBuilderTrait.php Disables Layout Builder using the UI.
EnableLayoutBuilderTrait::enableLayoutBuilderFromUi function core/modules/layout_builder/tests/src/Traits/EnableLayoutBuilderTrait.php Enables Layout Builder using the UI.
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.
EntityBundleExistsConstraintValidatorTest::testEntityTypeIdFromMultipleParents function core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php Tests getting the entity type ID from a deeply nested property path.
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.

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