function MigrateValidatableEntityInterface::validateEntity
Same name in other branches
- 9 core/modules/migrate/src/Plugin/MigrateValidatableEntityInterface.php \Drupal\migrate\Plugin\MigrateValidatableEntityInterface::validateEntity()
- 8.9.x core/modules/migrate/src/Plugin/MigrateValidatableEntityInterface.php \Drupal\migrate\Plugin\MigrateValidatableEntityInterface::validateEntity()
- 10 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\PluginCode
public function validateEntity(FieldableEntityInterface $entity);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.