W3cubDocs

/Drupal 8

public function EntityConstraintViolationListInterface::getByField

public EntityConstraintViolationListInterface::getByField($field_name)

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.

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);

© 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::getByField/8.1.x