Sonata\ProductBundle\Admin\ProductAdmin::configureShowFields PHP Method

configureShowFields() protected method

protected configureShowFields ( Sonata\AdminBundle\Show\ShowMapper $showMapper )
$showMapper Sonata\AdminBundle\Show\ShowMapper
    protected function configureShowFields(ShowMapper $showMapper)
    {
        // this admin class works only from a request scope
        if (!$this->hasRequest()) {
            return;
        }
        if ($this->isChild()) {
            // variation
            return;
        }
        $product = $this->getProduct();
        $provider = $this->getProductProvider($product);
        $provider->configureShowFields($showMapper);
    }