public function MigrateValidatableEntityInterface::validateEntity in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/MigrateValidatableEntityInterface.php \Drupal\migrate\Plugin\MigrateValidatableEntityInterface::validateEntity()
- 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 36
Class
- MigrateValidatableEntityInterface
- To implement by a destination plugin that should provide entity validation.
Namespace
Drupal\migrate\PluginCode
public function validateEntity(FieldableEntityInterface $entity);