public EntityConstraintViolationListInterface::getByFields(array $field_names)
Gets the violations of the given fields.
When violations should be displayed for a sub-set of visible fields only, this method may be used to filter the set of visible violations first.
string[] $field_names: The names of the fields to get violations for.
\Drupal\Core\Entity\EntityConstraintViolationListInterface A list of violations of the given fields.
public function getByFields(array $field_names);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityConstraintViolationListInterface.php/function/EntityConstraintViolationListInterface::getByFields/8.1.x