function all in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/src/functions.php \GuzzleHttp\Promise\all()
Given an array of promises, return a promise that is fulfilled when all the items in the array are fulfilled.
The promise's fulfillment value is an array with fulfillment values at respective positions to the original array. If any promise in the array rejects, the returned promise is rejected with the rejection reason.
Parameters
mixed $promises Promises or values.:
Return value
70 string references to 'all'
- ArgumentPluginBase::defineOptions in core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php - Information about options for all kinds of purposes will be held here.
- AssetResolver::getCssAssets in core/
lib/ Drupal/ Core/ Asset/ AssetResolver.php - Returns the CSS assets for the current response's libraries.
- BasicTest::testWizardForm in core/
modules/ views/ src/ Tests/ Wizard/ BasicTest.php - Tests the actual wizard form.
- ConfigurableLanguageManager::saveLanguageTypesConfiguration in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Stores language types configuration.
- CssCollectionGrouperUnitTest::testGrouper in core/
tests/ Drupal/ Tests/ Core/ Asset/ CssCollectionGrouperUnitTest.php - Tests \Drupal\Core\Asset\CssCollectionGrouper.
File
- vendor/
guzzlehttp/ promises/ src/ functions.php, line 210
Namespace
GuzzleHttp\PromiseCode
function all($promises) {
$results = [];
return each($promises, function ($value, $idx) use (&$results) {
$results[$idx] = $value;
}, function ($reason, $idx, Promise $aggregate) {
$aggregate
->reject($reason);
})
->then(function () use (&$results) {
ksort($results);
return $results;
});
}