Skip to content

Commit 90dce52

Browse files
dbalabkadamonsson
authored andcommitted
Add SlugAwareInterface for Page entity
1 parent 4075bb6 commit 90dce52

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/Entity/PageInterface.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
use Sylius\Component\Channel\Model\ChannelsAwareInterface;
1616
use Sylius\Component\Resource\Model\ResourceInterface;
17+
use Sylius\Component\Resource\Model\SlugAwareInterface;
1718
use Sylius\Component\Resource\Model\TimestampableInterface;
1819
use Sylius\Component\Resource\Model\ToggleableInterface;
1920
use Sylius\Component\Resource\Model\TranslatableInterface;
@@ -26,12 +27,9 @@ interface PageInterface extends
2627
SectionableInterface,
2728
TimestampableInterface,
2829
ChannelsAwareInterface,
29-
ContentableInterface
30+
ContentableInterface,
31+
SlugAwareInterface
3032
{
31-
public function getSlug(): ?string;
32-
33-
public function setSlug(?string $slug): void;
34-
3533
public function getCode(): ?string;
3634

3735
public function setCode(?string $code): void;

0 commit comments

Comments
 (0)