public function ConstraintViolationList::has

Returns whether the given offset exists.

@api

Parameters

integer $offset The violation offset.:

Return value

Boolean Whether the offset exists.

Overrides ConstraintViolationListInterface::has

1 call to ConstraintViolationList::has()
ConstraintViolationList::offsetExists in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php

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]);
}