Search for from

  1. Search 7.x for from
  2. Search 8.9.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
AddFormBase::createMediaFromValue function core/modules/media_library/src/Form/AddFormBase.php Creates a new, unsaved media item from a source field value.
AnnotatedClassDiscovery::getProviderFromNamespace function core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php Extracts the provider name from a Drupal namespace.
AssertViewsCacheTagsTrait::assertViewsCacheTagsFromStaticRenderArray function core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php Asserts a view's result & render cache items' cache tags.
AttachedAssets::createFromRenderArray function core/lib/Drupal/Core/Asset/AttachedAssets.php Creates an AttachedAssetsInterface object from a render array.
AttachedAssetsInterface::createFromRenderArray function core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php Creates an AttachedAssetsInterface object from a render array.
BaseFieldDefinition::createFromFieldStorageDefinition function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Creates a new field definition based upon a field storage definition.
BaseFieldDefinition::createFromItemType function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Creates a new list data definition for items of the given data type.
BaseFieldDefinition::getInitialValueFromField function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns the name of the field that will be used for getting initial values.
BaseFieldDefinition::setInitialValueFromField function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Sets a field that will be used for getting initial values.
BaseFieldOverride::createFromBaseFieldDefinition function core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php Creates a base field override object.
BlockAccessControlHandler::mergeCacheabilityFromConditions function core/modules/block/src/BlockAccessControlHandler.php Merges cacheable metadata from conditions onto the access result object.
BlockTest::testAddBlockFromLibraryWithWeight function core/modules/block/tests/src/Functional/BlockTest.php Tests adding a block from the library page with a weight query string.
BookManager::deleteFromBook function core/modules/book/src/BookManager.php Deletes node's entry from book table.
BookManagerInterface::deleteFromBook function core/modules/book/src/BookManagerInterface.php Deletes node's entry from book table.
BubbleableMetadata::createFromObject function core/lib/Drupal/Core/Render/BubbleableMetadata.php Creates a bubbleable metadata object from a depended object.
BubbleableMetadata::createFromRenderArray function core/lib/Drupal/Core/Render/BubbleableMetadata.php Creates a bubbleable metadata object with values taken from a render array.
BubbleableMetadataTest::providerTestCreateFromRenderArray function core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php Provides test data for createFromRenderArray().
BubbleableMetadataTest::testCreateFromRenderArray function core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php @covers ::createFromRenderArray
@dataProvider providerTestCreateFromRenderArray
BulkForm::loadEntityFromBulkFormKey function core/modules/views/src/Plugin/views/field/BulkForm.php Loads an entity based on a bulk form key.
BundleClassTest::testEntityClassNotTakenFromActiveDefinitions function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Tests that a module can override an entity-type class.
BundleEntityStorageInterface::getBundleFromClass function core/lib/Drupal/Core/Entity/BundleEntityStorageInterface.php Retrieves the bundle name for a provided class name.
Cache::keyFromQuery function core/lib/Drupal/Core/Cache/Cache.php Generates a hash from a query object, to be used as part of the cache key.
CacheableMetadata::createFromObject function core/lib/Drupal/Core/Cache/CacheableMetadata.php Creates a CacheableMetadata object from a depended object.
CacheableMetadata::createFromRenderArray function core/lib/Drupal/Core/Cache/CacheableMetadata.php Creates a CacheableMetadata object with values taken from a render array.
CacheableMetadataTest::providerTestCreateFromObject function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Provides test data for createFromObject().
CacheableMetadataTest::providerTestCreateFromRenderArray function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php Provides test data for createFromRenderArray().
CacheableMetadataTest::testCreateFromObject function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php @covers ::createFromObject
@dataProvider providerTestCreateFromObject
CacheableMetadataTest::testCreateFromRenderArray function core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php @covers ::createFromRenderArray
@dataProvider providerTestCreateFromRenderArray
CacheableSecuredRedirectResponse::fromResponse function core/lib/Drupal/Core/Routing/CacheableSecuredRedirectResponse.php Copies over the values from the given response.
CacheCollectorTest::testGetFromCache function core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php Tests returning value from the collected cache.
CKEditor5ImageController::generateLockIdFromFileUri function core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php Generates a lock ID based on the file URI.
ClassLoaderTest::testAutoloadFromModuleFile function core/modules/system/tests/src/Functional/Module/ClassLoaderTest.php Tests that .module files can use class constants in main section.
ClassResolver::getInstanceFromDefinition function core/lib/Drupal/Core/DependencyInjection/ClassResolver.php Returns a class instance with a given class definition.
ClassResolverInterface::getInstanceFromDefinition function core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php Returns a class instance with a given class definition.
ClientFactory::fromOptions function core/lib/Drupal/Core/Http/ClientFactory.php Constructs a new client object from some configuration.
ClientFactoryTest::providerTestCreateFromOptions function core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php Data provider for testCreateFromOptions.
ClientFactoryTest::testCreateFromOptions function core/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php @covers ::fromOptions
@dataProvider providerTestCreateFromOptions
ConfigEntityMapper::populateFromRouteMatch function core/modules/config_translation/src/ConfigEntityMapper.php Populate the config mapper with route match data.
ConfigEntityStorage::createFromStorageRecord function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php Creates a configuration entity from storage values.
ConfigEntityStorage::getIDFromConfigName function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php Extracts the configuration entity ID from the full configuration name.
ConfigEntityStorage::updateFromStorageRecord function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php Updates a configuration entity from storage values.
ConfigEntityStorage::_doCreateFromStorageRecord function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php Helps create a configuration entity from storage values.
ConfigEntityStorageInterface::createFromStorageRecord function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php Creates a configuration entity from storage values.
ConfigEntityStorageInterface::getIDFromConfigName function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php Extracts the configuration entity ID from the full configuration name.
ConfigEntityStorageInterface::updateFromStorageRecord function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php Updates a configuration entity from storage values.
ConfigMapperInterface::getLangcodeFromConfig function core/modules/config_translation/src/ConfigMapperInterface.php Returns the language code of a configuration object given its name.
ConfigMapperInterface::populateFromRouteMatch function core/modules/config_translation/src/ConfigMapperInterface.php Populate the config mapper with route match data.
ConfigNamesMapper::getLangcodeFromConfig function core/modules/config_translation/src/ConfigNamesMapper.php Returns the language code of a configuration object given its name.
ConfigNamesMapper::populateFromRouteMatch function core/modules/config_translation/src/ConfigNamesMapper.php Populate the config mapper with route match data.
ConfigNamesMapperTest::testPopulateFromRouteMatch function core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php Tests ConfigNamesMapper::populateFromRouteMatch().

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