_getInput() protected method

Generates an input element
protected _getInput ( string $fieldName, array $options ) : string
$fieldName string the field name
$options array The options for the input element
return string The generated input element
 protected function _getInput($fieldName, $options)
 {
     if (isset($options['type']) && !in_array($options['type'], ['radio', 'checkbox', 'datetime'])) {
         $options = $this->addClass($options, 'form-control');
     }
     return parent::_getInput($fieldName, $options);
 }
 /**
  * Override
  *
  * @param string $fieldName field name
  * @param array $options An array of HTML attributes.
  * @return string
  */
 protected function _getInput($fieldName, $options)
 {
     if (isset($options['type']) && !in_array($options['type'], ['radio', 'checkbox', 'datetime'])) {
         $options = $this->addClass($options, 'form-control');
     }
     $input = parent::_getInput($fieldName, $options);
     // FIXME it should be possible to configure the used col sizes
     // FIXME is this correct for the non-horizontal forms?
     if (isset($options['multiple']) && $options['multiple'] === 'checkbox') {
         $input = '<div class="col-xs-10">' . $input . '{{help}}</div>';
     }
     if ($options['type'] == 'radio') {
         $input = '<div class="col-xs-10">' . $input . '{{help}}</div>';
     }
     return $input;
 }
 /**
  * Generates an input element
  *
  * @param string $fieldName the field name
  * @param array $options The options for the input element
  * @return string The generated input element
  */
 protected function _getInput($fieldName, $options)
 {
     unset($options['_data']);
     return parent::_getInput($fieldName, $options);
 }