src/Admin/CoreAdmin.php
public function removeTab($tabNames, $mapper)
    {
        $currentTabs = $this->getFormTabs();
        foreach ($currentTabs as $k => $item) {
            if (is_array($tabNames) && in_array($item['name'], $tabNames) || !is_array($tabNames) && $item['name'] === $tabNames) {
                foreach ($item['groups'] as $groupName) {
                    $this->removeAllFieldsFromFormGroup($groupName, $mapper);
                }
                unset($currentTabs[$k]);
            }
        }
        $this->setFormTabs($currentTabs);
    }
public function removeTab($tabNames, $mapper)
    {
        $currentTabs = $this->getFormTabs();
        foreach ($currentTabs as $k => $item) {
            if (is_array($tabNames) && in_array($item['name'], $tabNames) || !is_array($tabNames) && $item['name'] === $tabNames) {
                foreach ($item['groups'] as $groupName) {
                    $this->removeAllFieldsFromFormGroup($groupName, $mapper);
                }
                unset($currentTabs[$k]);
            }
        }
        $this->setFormTabs($currentTabs);
    }
public function removeTab ( $ tabNames , $ mapper ) { $ currentTabs = $ this -> getFormTabs ( ) ; foreach ( $ currentTabs as $ k => $ item ) { if ( is_array ( $ tabNames ) && in_array ( $ item [ 'name' ] , $ tabNames ) || ! is_array ( $ tabNames ) && $ item [ 'name' ] === $ tabNames ) { foreach ( $ item [ 'groups' ] as $ groupName ) { $ this -> removeAllFieldsFromFormGroup ( $ groupName , $ mapper ) ; } unset ( $ currentTabs [ $ k ] ) ; } } $ this -> setFormTabs ( $ currentTabs ) ; }
Removes tab in current form Mapper.

@param string|array $tabNames name or array of names of tabs to be removed
@param FormMapper   $mapper   Sonata Admin form mapper
Removes tab in current form Mapper .