public static function ValidationResult::createWarning in Automatic Updates 8.2
Creates a warning ValidationResult object.
Parameters
\Drupal\Core\StringTranslation\TranslatableMarkup[] $messages: The error messages.
\Drupal\Core\StringTranslation\TranslatableMarkup|null $summary: The errors summary.
Return value
static
3 calls to ValidationResult::createWarning()
- ValidationResultTest::testCreateWarningResult in tests/
src/ Unit/ ValidationResultTest.php - @covers ::createWarning
- ValidationResultTest::testCreateWarningResultException in tests/
src/ Unit/ ValidationResultTest.php - @covers ::createWarning
- ValidationTestTrait::createTestValidationResults in tests/
src/ Traits/ ValidationTestTrait.php - Creates ValidationResult objects to be used in tests.
File
- src/
Validation/ ValidationResult.php, line 78
Class
- ValidationResult
- A value object to contain the results of a validation.
Namespace
Drupal\automatic_updates\ValidationCode
public static function createWarning(array $messages, ?TranslatableMarkup $summary = NULL) : self {
return new static(SystemManager::REQUIREMENT_WARNING, $messages, $summary);
}