public EntityConstraintViolationList::getByField($field_name)
Gets the violations of the given field.
string $field_name: The name of the field to get violations for.
\Symfony\Component\Validator\ConstraintViolationListInterface The violations of the given field.
Overrides EntityConstraintViolationListInterface::getByField
public function getByField($field_name) { return $this->getByFields([$field_name]); }
© 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!EntityConstraintViolationList.php/function/EntityConstraintViolationList::getByField/8.1.x