public static function AvailabilityResult::neutral in Commerce Core 8.2
Creates an availability result that is "neutral".
Return value
static
4 calls to AvailabilityResult::neutral()
- AvailabilityManager::check in modules/
order/ src/ AvailabilityManager.php - Checks the availability of the given order item.
- AvailabilityManagerTest::testCheck in modules/
order/ tests/ src/ Unit/ AvailabilityManagerTest.php - ::covers addChecker ::covers check.
- AvailabilityManagerTest::testLegacyCheckers in modules/
order/ tests/ src/ Unit/ AvailabilityManagerTest.php - ::covers addChecker ::covers addLegacyChecker ::covers check.
- PurchasedEntityConstraintValidatorTest::dataProviderCheckerData in modules/
order/ tests/ src/ Kernel/ PurchasedEntityConstraintValidatorTest.php - Data provider for test.
File
- modules/
order/ src/ AvailabilityResult.php, line 46
Class
- AvailabilityResult
- Provides a value object representing the "availability" of an order item.
Namespace
Drupal\commerce_orderCode
public static function neutral() : AvailabilityResult {
return new static(TRUE);
}