function any in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/guzzlehttp/promises/src/functions.php \GuzzleHttp\Promise\any()
- 8.0 vendor/phpunit/phpunit/src/Framework/Assert/Functions.php \any()
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/src/functions.php \GuzzleHttp\Promise\any()
Like some(), with 1 as count. However, if the promise fulfills, the fulfillment value is not an array of 1 but the value directly.
Parameters
mixed $promises Promises or values.:
Return value
47 string references to 'any'
- ContextHandler::getMatchingContexts in core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextHandler.php - Determines which contexts satisfy the constraints of a given definition.
- ContextTypedDataTest::testGetContextValue in core/
tests/ Drupal/ Tests/ Core/ Plugin/ Context/ ContextTypedDataTest.php - Tests that getting a context value does not throw fatal errors.
- DataDefinition::getDataType in core/
lib/ Drupal/ Core/ TypedData/ DataDefinition.php - Returns the data type of the data.
- FloatItem::fieldSettingsForm in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ FloatItem.php - Returns a form for the field-level settings.
- FormTestRangeForm::buildForm in core/
modules/ system/ tests/ modules/ form_test/ src/ Form/ FormTestRangeForm.php - Form constructor.
File
- vendor/
guzzlehttp/ promises/ src/ functions.php, line 284
Namespace
GuzzleHttp\PromiseCode
function any($promises) {
return some(1, $promises)
->then(function ($values) {
return $values[0];
});
}