interface ConstraintViolationListInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/ConstraintViolationListInterface.php \Symfony\Component\Validator\ConstraintViolationListInterface
A list of constraint violations.
@author Bernhard Schussek <bschussek@gmail.com>
Hierarchy
- interface \Symfony\Component\Validator\ConstraintViolationListInterface extends \Symfony\Component\Validator\Traversable \Symfony\Component\Validator\Countable \Symfony\Component\Validator\ArrayAccess
Expanded class hierarchy of ConstraintViolationListInterface
All classes that implement ConstraintViolationListInterface
9 files declare their use of ConstraintViolationListInterface
- ContextualValidatorInterface.php in vendor/
symfony/ validator/ Validator/ ContextualValidatorInterface.php - EntityConstraintViolationListInterface.php in core/
lib/ Drupal/ Core/ Entity/ EntityConstraintViolationListInterface.php - Contains \Drupal\Core\Entity\EntityConstraintViolationListInterface.
- EntityFormDisplay.php in core/
lib/ Drupal/ Core/ Entity/ Entity/ EntityFormDisplay.php - Contains \Drupal\Core\Entity\Entity\EntityFormDisplay.
- FileWidget.php in core/
modules/ file/ src/ Plugin/ Field/ FieldWidget/ FileWidget.php - Contains \Drupal\file\Plugin\Field\FieldWidget\FileWidget.
- FilterAPITest.php in core/
modules/ filter/ src/ Tests/ FilterAPITest.php - Contains \Drupal\filter\Tests\FilterAPITest.
File
- vendor/
symfony/ validator/ ConstraintViolationListInterface.php, line 19
Namespace
Symfony\Component\ValidatorView source
interface ConstraintViolationListInterface extends \Traversable, \Countable, \ArrayAccess {
/**
* Adds a constraint violation to this list.
*
* @param ConstraintViolationInterface $violation The violation to add.
*/
public function add(ConstraintViolationInterface $violation);
/**
* Merges an existing violation list into this list.
*
* @param ConstraintViolationListInterface $otherList The list to merge.
*/
public function addAll(ConstraintViolationListInterface $otherList);
/**
* Returns the violation at a given offset.
*
* @param int $offset The offset of the violation.
*
* @return ConstraintViolationInterface The violation.
*
* @throws \OutOfBoundsException If the offset does not exist.
*/
public function get($offset);
/**
* Returns whether the given offset exists.
*
* @param int $offset The violation offset.
*
* @return bool Whether the offset exists.
*/
public function has($offset);
/**
* Sets a violation at a given offset.
*
* @param int $offset The violation offset.
* @param ConstraintViolationInterface $violation The violation.
*/
public function set($offset, ConstraintViolationInterface $violation);
/**
* Removes a violation at a given offset.
*
* @param int $offset The offset to remove.
*/
public function remove($offset);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConstraintViolationListInterface:: |
public | function | Adds a constraint violation to this list. | 1 |
ConstraintViolationListInterface:: |
public | function | Merges an existing violation list into this list. | 1 |
ConstraintViolationListInterface:: |
public | function | Returns the violation at a given offset. | 1 |
ConstraintViolationListInterface:: |
public | function | Returns whether the given offset exists. | 1 |
ConstraintViolationListInterface:: |
public | function | Removes a violation at a given offset. | 1 |
ConstraintViolationListInterface:: |
public | function | Sets a violation at a given offset. | 1 |