createField() public method

public createField ( string $type, string $name, string $label = NULL ) : FluidTYPO3\Flux\Form\FieldInterface
$type string
$name string
$label string
return FluidTYPO3\Flux\Form\FieldInterface
 /**
  * @param string $type
  * @param string $name
  * @param null $label
  * @return FieldInterface
  */
 public function createField($type, $name, $label = NULL)
 {
     $field = parent::createField($type, $name, $label);
     $this->add($field);
     return $field;
 }