You are here

public function EntityValidationException::getViolations in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Exception/EntityValidationException.php \Drupal\migrate\Exception\EntityValidationException::getViolations()

Returns the list of violations generated during the entity validation.

Return value

\Drupal\Core\Entity\EntityConstraintViolationListInterface The list of violations generated during the entity validation.

File

core/modules/migrate/src/Exception/EntityValidationException.php, line 83

Class

EntityValidationException
To throw when an entity generated during the import is not valid.

Namespace

Drupal\migrate\Exception

Code

public function getViolations() {
  return $this->violations;
}