Returns whether the given offset exists.
@api
Parameters
integer $offset The violation offset.:
Return value
Boolean Whether the offset exists.
Overrides ConstraintViolationListInterface::has
File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php, line 87
Class
- ConstraintViolationList
- Default implementation of {@ConstraintViolationListInterface}.
Namespace
Symfony\Component\Validator
Code
public function has($offset) {
return isset($this->violations[$offset]);
}