function EntityConstraintViolationListInterface::filterByFields
Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php \Drupal\Core\Entity\EntityConstraintViolationListInterface::filterByFields()
- 9 core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php \Drupal\Core\Entity\EntityConstraintViolationListInterface::filterByFields()
- 8.9.x core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php \Drupal\Core\Entity\EntityConstraintViolationListInterface::filterByFields()
- main core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php \Drupal\Core\Entity\EntityConstraintViolationListInterface::filterByFields()
Filters this violation list by the given fields.
Violations for the provided fields are removed so the returned object just has the remaining violations.
Parameters
string[] $field_names: The names of the fields to filter violations for.
Return value
$this
1 method overrides EntityConstraintViolationListInterface::filterByFields()
- EntityConstraintViolationList::filterByFields in core/
lib/ Drupal/ Core/ Entity/ EntityConstraintViolationList.php - Filters this violation list by the given fields.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityConstraintViolationListInterface.php, line 75
Class
- EntityConstraintViolationListInterface
- Interface for the result of entity validation.
Namespace
Drupal\Core\EntityCode
public function filterByFields(array $field_names);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.