function ValidationResult::isEqual
Determines if two validation results are equivalent.
Parameters
self $a: A validation result.
self $b: Another validation result.
Return value
bool TRUE if the given validation results have the same severity, summary, and messages (in the same order); otherwise FALSE.
File
-
core/
modules/ package_manager/ src/ ValidationResult.php, line 142
Class
- ValidationResult
- A value object to contain the results of a validation.
Namespace
Drupal\package_managerCode
public static function isEqual(self $a, self $b) : bool {
return $a->severity === $b->severity && strval($a->summary) === strval($b->summary) && array_map('strval', $a->messages) === array_map('strval', $b->messages);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.