Skip to content

Commit

Permalink
[DOC] Update 30_Link_Generator.md (#16805)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdchaudhary committed Mar 22, 2024
1 parent 23dc5b5 commit 52687ff
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ use App\Website\Tool\Text;
use Pimcore\Bundle\EcommerceFrameworkBundle\Model\ProductInterface;
use Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\ClassDefinition\LinkGeneratorInterface;
use Pimcore\Model\DataObject\Concrete;
use Pimcore\Bundle\EcommerceFrameworkBundle\Model\DefaultMockup;

class ProductLinkGenerator extends AbstractProductLinkGenerator implements LinkGeneratorInterface
{
public function generate(Concrete $object, array $params = []): string
public function generate(object $object, array $params = []): string
{
if (!($object instanceof Car || $object instanceof AccessoryPart)) {
throw new \InvalidArgumentException('Given object is no Car');
Expand Down

0 comments on commit 52687ff

Please sign in to comment.