Skip to content

Commit 558b1e4

Browse files
mkoosejlsmith77
mkoosej
authored andcommitted
Add MenuOptionsInterface
For compatibility with MenuNodeHtmlAttributeExtension from the menuBundle
1 parent 439739b commit 558b1e4

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

Doctrine/Phpcr/Page.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface;
1919
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface;
2020
use Symfony\Cmf\Bundle\CoreBundle\Translatable\TranslatableInterface;
21+
use Symfony\Cmf\Bundle\MenuBundle\Model\MenuOptionsInterface;
2122
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route;
2223
use Symfony\Cmf\Component\Routing\RouteReferrersReadInterface;
23-
use PHPCR\NodeInterface as PHPCRNodeInterface;
2424

2525
use Symfony\Component\Validator\Constraints as Assert;
2626

@@ -40,6 +40,7 @@ class Page extends Route implements
4040
RouteReferrersReadInterface, // this must not be the write interface, it would make no sense
4141
PublishTimePeriodInterface,
4242
PublishableInterface,
43+
MenuOptionsInterface,
4344
TranslatableInterface
4445
{
4546
/**
@@ -670,16 +671,4 @@ public function setRouteOptions(array $options)
670671
{
671672
parent::setOptions($options);
672673
}
673-
674-
/**
675-
* Retrieve UUID of Node or null if not present
676-
*
677-
* @return string|null
678-
*/
679-
public function getUUID()
680-
{
681-
$node = $this->getNode();
682-
683-
return $node instanceof PHPCRNodeInterface ? $node->getIdentifier() : null;
684-
}
685674
}

0 commit comments

Comments
 (0)