original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Create a new tab and nest it under the tabs.
  
  @param string $name
  @param string $label
  @param array  $options
  
  @return FormBuilderInterface The created tab.
docstring_tokens: Create a new tab and nest it under the tabs .