Overrides FieldConfigInterface::addConstraint
public function addConstraint($constraint_name, $options = NULL) { $this->constraints[$constraint_name] = $options; return $this; }