protected function configureShowFields(ShowMapper $mapper)
    {
        // call to aliased trait method
        $this->configShowHandlesRelations($mapper);
        $this->configureShowDescriptions($mapper);

        //Removal of Variety/Strain specific fields
        if ($this->getSubject()) {
            if ($this->getSubject()->getIsStrain()) {
                $tabs = $mapper->getadmin()->getShowTabs();
                unset($tabs['form_tab_strains']);
                $mapper->getAdmin()->setShowTabs($tabs);
                $mapper->remove('children');
                $mapper->remove('several_strains');
            } else {
                $mapper->remove('parent');
            }
        }
    }
protected function configureShowFields(ShowMapper $mapper)
    {
        // call to aliased trait method
        $this->configShowHandlesRelations($mapper);
        $this->configureShowDescriptions($mapper);

        //Removal of Variety/Strain specific fields
        if ($this->getSubject()) {
            if ($this->getSubject()->getIsStrain()) {
                $tabs = $mapper->getadmin()->getShowTabs();
                unset($tabs['form_tab_strains']);
                $mapper->getAdmin()->setShowTabs($tabs);
                $mapper->remove('children');
                $mapper->remove('several_strains');
            } else {
                $mapper->remove('parent');
            }
        }
    }
protected function configureShowFields ( ShowMapper $ mapper ) { // call to aliased trait method $ this -> configShowHandlesRelations ( $ mapper ) ; $ this -> configureShowDescriptions ( $ mapper ) ; //Removal of Variety/Strain specific fields if ( $ this -> getSubject ( ) ) { if ( $ this -> getSubject ( ) -> getIsStrain ( ) ) { $ tabs = $ mapper -> getadmin ( ) -> getShowTabs ( ) ; unset ( $ tabs [ 'form_tab_strains' ] ) ; $ mapper -> getAdmin ( ) -> setShowTabs ( $ tabs ) ; $ mapper -> remove ( 'children' ) ; $ mapper -> remove ( 'several_strains' ) ; } else { $ mapper -> remove ( 'parent' ) ; } } }
Configure Show view fields.

@param ShowMapper $mapper
Configure Show view fields .