function EntityConstraintViolationListInterface::getByField

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php \Drupal\Core\Entity\EntityConstraintViolationListInterface::getByField()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php \Drupal\Core\Entity\EntityConstraintViolationListInterface::getByField()
  3. 10 core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php \Drupal\Core\Entity\EntityConstraintViolationListInterface::getByField()

Gets the violations of the given field.

Parameters

string $field_name: The name of the field to get violations for.

Return value

\Symfony\Component\Validator\ConstraintViolationListInterface The violations of the given field.

1 method overrides EntityConstraintViolationListInterface::getByField()
EntityConstraintViolationList::getByField in core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php

File

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

Class

EntityConstraintViolationListInterface
Interface for the result of entity validation.

Namespace

Drupal\Core\Entity

Code

public function getByField($field_name);

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