Sonata\Component\Product\ProductManagerInterface::findEnabledFromIdAndSlug PHP Method

findEnabledFromIdAndSlug() public method

Retrieve an active product from its id and its slug.
public findEnabledFromIdAndSlug ( integer $id, string $slug ) : Sonata\Component\Product\ProductInterface | null
$id integer
$slug string
return Sonata\Component\Product\ProductInterface | null
    public function findEnabledFromIdAndSlug($id, $slug);