1 EntityReferenceBehaviorHandler.inc public EntityReferenceBehaviorHandlerInterface::validate($entity_type, $entity, $field, $instance, $langcode, $items, &$errors)

Act on validating an entity reference field.

See also

hook_field_validate()

File

core/modules/entityreference/plugins/behavior/EntityReferenceBehaviorHandler.inc, line 59

Class

EntityReferenceBehaviorHandlerInterface
Additional behaviors for a Entity Reference field.

Code

public function validate($entity_type, $entity, $field, $instance, $langcode, $items, &$errors);