You are here

public function MigrateValidatableEntityInterface::validateEntity in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/src/Plugin/MigrateValidatableEntityInterface.php \Drupal\migrate\Plugin\MigrateValidatableEntityInterface::validateEntity()

Validates the entity.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity to validate.

Throws

\Drupal\migrate\Exception\EntityValidationException When the validation didn't succeed.

1 method overrides MigrateValidatableEntityInterface::validateEntity()
EntityContentBase::validateEntity in core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php
Validates the entity.

File

core/modules/migrate/src/Plugin/MigrateValidatableEntityInterface.php, line 34

Class

MigrateValidatableEntityInterface
To implement by a destination plugin that should provide entity validation.

Namespace

Drupal\migrate\Plugin

Code

public function validateEntity(FieldableEntityInterface $entity);