public function createTab($name, $label, $options = array())
    {
        $options = array_replace(
            $options,
            array(
                'label' => $label,
                'inherit_data' => true,
            ));

        $tab = $this->formBuilder->create($name, TabsTabType::class, $options);
        $this->formBuilder->get('tabs')->add($tab);

        return $tab;
    }
public function createTab($name, $label, $options = array())
    {
        $options = array_replace(
            $options,
            array(
                'label' => $label,
                'inherit_data' => true,
            ));

        $tab = $this->formBuilder->create($name, TabsTabType::class, $options);
        $this->formBuilder->get('tabs')->add($tab);

        return $tab;
    }
public function createTab ( $ name , $ label , $ options = array ( ) ) { $ options = array_replace ( $ options , array ( 'label' => $ label , 'inherit_data' => true , ) ) ; $ tab = $ this -> formBuilder -> create ( $ name , TabsTabType :: class , $ options ) ; $ this -> formBuilder -> get ( 'tabs' ) -> add ( $ tab ) ; return $ tab ; }
Create a new tab and nest it under the tabs.

@param string $name
@param string $label
@param array  $options

@return FormBuilderInterface The created tab.
Create a new tab and nest it under the tabs .