function EntityValidationException::getViolations
Same name in other branches
- 9 core/modules/migrate/src/Exception/EntityValidationException.php \Drupal\migrate\Exception\EntityValidationException::getViolations()
- 10 core/modules/migrate/src/Exception/EntityValidationException.php \Drupal\migrate\Exception\EntityValidationException::getViolations()
- 11.x 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\ExceptionCode
public function getViolations() {
return $this->violations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.