src/Model/UserValidationTrait.php
public function compareFields($value, $field, $context) {
		if (!isset($context['data'][$field])) {
			return true;
		}
		if ($value === $context['data'][$field]) {
			return true;
		}

		return false;
	}
public function compareFields($value, $field, $context) {
		if (!isset($context['data'][$field])) {
			return true;
		}
		if ($value === $context['data'][$field]) {
			return true;
		}

		return false;
	}
public function compareFields ( $ value , $ field , $ context ) { if ( ! isset ( $ context [ 'data' ] [ $ field ] ) ) { return true ; } if ( $ value === $ context [ 'data' ] [ $ field ] ) { return true ; } return false ; }
Compares the value of two fields.

@param mixed $value Value
@param string $field Field
@param Entity $context Context
@return bool
Compares the value of two fields .