Permalink
Browse files

Add support for hideinput option

  • Loading branch information...
flack committed Oct 23, 2017
1 parent 085d3e4 commit ccd7125ea827b9f9b1bddb1a6f68a157ed92eaff
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/midcom/datamanager/schema.php
@@ -20,6 +20,7 @@
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Form\Extension\Core\Type\FormType;
use midcom\datamanager\extension\type\toolbar;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
/**
* Experimental schema class
@@ -235,6 +236,9 @@ private function resolve_field_options(array $config, $name)
}
if ($value == 'text') {
if (!empty($options['widget_config']['hideinput'])) {
return PasswordType::class;
}
if ($options['type'] === 'number') {
return 'number';
}

0 comments on commit ccd7125

Please sign in to comment.