interface MigrateValidatableEntityInterface in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/src/Plugin/MigrateValidatableEntityInterface.php \Drupal\migrate\Plugin\MigrateValidatableEntityInterface
To implement by a destination plugin that should provide entity validation.
Hierarchy
- interface \Drupal\migrate\Plugin\MigrateValidatableEntityInterface
Expanded class hierarchy of MigrateValidatableEntityInterface
All classes that implement MigrateValidatableEntityInterface
Related topics
1 file declares its use of MigrateValidatableEntityInterface
- EntityContentBase.php in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityContentBase.php
File
- core/
modules/ migrate/ src/ Plugin/ MigrateValidatableEntityInterface.php, line 12
Namespace
Drupal\migrate\PluginView source
interface MigrateValidatableEntityInterface {
/**
* Returns a state of whether an entity needs to be validated before saving.
*
* @param \Drupal\Core\Entity\FieldableEntityInterface $entity
* The entity to check for required validation.
*
* @return bool
* A state of whether an entity needs to be validated.
*/
public function isEntityValidationRequired(FieldableEntityInterface $entity);
/**
* Validates the entity.
*
* @param \Drupal\Core\Entity\FieldableEntityInterface $entity
* The entity to validate.
*
* @throws \Drupal\migrate\Exception\EntityValidationException
* When the validation didn't succeed.
*/
public function validateEntity(FieldableEntityInterface $entity);
}