Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityValidationException.php

function 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal