Example #1
0
 /**
  * Callback used on remove this attribute from an input
  *
  * @param InputInterface $input The input from the attribute will be removed
  */
 public static function onRemove($input)
 {
     $input->removeValidator('min');
 }
Example #2
0
 /**
  * Callback used on remove this attribute from an input
  *
  * @param InputInterface $input The input from the attribute will be removed
  */
 public static function onRemove($input)
 {
     $input->removeValidator('required');
 }