interface MigrateValidatableEntityInterface (View source)

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

Methods

bool
isEntityValidationRequired(FieldableEntityInterface $entity)

Returns a state of whether an entity needs to be validated before saving.

validateEntity(FieldableEntityInterface $entity)

Validates the entity.

Details

bool isEntityValidationRequired(FieldableEntityInterface $entity)

Returns a state of whether an entity needs to be validated before saving.

Parameters

FieldableEntityInterface $entity

The entity to check for required validation.

Return Value

bool

A state of whether an entity needs to be validated.

validateEntity(FieldableEntityInterface $entity)

Validates the entity.

Parameters

FieldableEntityInterface $entity

The entity to validate.

Exceptions

EntityValidationException