function EntityConstraintViolationListInterface::findByCodes

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php \Drupal\Core\Entity\EntityConstraintViolationListInterface::findByCodes()

Filters this violation list by the given error codes.

Copied from Symfony parent class \Symfony\Component\Validator\ConstraintViolationList.

Parameters

string|string[] $codes: The codes to find.

Return value

\Drupal\Core\Entity\EntityConstraintViolationListInterface A list of violations of the given fields.

1 method overrides EntityConstraintViolationListInterface::findByCodes()
EntityConstraintViolationList::findByCodes in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
Filters this violation list by the given error codes.

File

core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php, line 62

Class

EntityConstraintViolationListInterface
Interface for the result of entity validation.

Namespace

Drupal\Core\Entity

Code

public function findByCodes(string|array $codes) : static;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.