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

getProductClass() public method

Returns the product class from the provided request.
public getProductClass ( ) : string
return string
    public function getProductClass()
    {
        if ($this->hasRequest()) {
            $code = $this->getProductType();
            if ($code) {
                return $this->getProductPool()->getManager($code)->getClass();
            }
        }
        return;
    }