/** * Copy the routes for all localization of the document in the event. * * @param CopyEvent $event */ public function updateCopiedDocument(CopyEvent $event) { $document = $event->getDocument(); if (!$document instanceof ResourceSegmentBehavior) { return; } $this->updateRoute($this->documentManager->find($event->getCopiedPath(), $this->documentInspector->getLocale($document)), false); }