src/Sulu/Component/Content/Document/Subscriber/ShadowCopyPropertiesSubscriber.php
public function copyFromShadow($document, NodeInterface $node)
    {
        $shadowLocale = $document->getShadowLocale();

        $tags = $this->getTags($node, $shadowLocale);
        $categories = $this->getCategories($node, $shadowLocale);
        $navigationContext = $this->getNavigationContext($node, $shadowLocale);

        $node->setProperty(sprintf(self::TAGS_PROPERTY, $document->getLocale()), $tags);
        $node->setProperty(sprintf(self::CATEGORIES_PROPERTY, $document->getLocale()), $categories);
        $node->setProperty(sprintf(self::NAVIGATION_CONTEXT_PROPERTY, $document->getLocale()), $navigationContext);
    }
public function copyFromShadow($document, NodeInterface $node)
    {
        $shadowLocale = $document->getShadowLocale();

        $tags = $this->getTags($node, $shadowLocale);
        $categories = $this->getCategories($node, $shadowLocale);
        $navigationContext = $this->getNavigationContext($node, $shadowLocale);

        $node->setProperty(sprintf(self::TAGS_PROPERTY, $document->getLocale()), $tags);
        $node->setProperty(sprintf(self::CATEGORIES_PROPERTY, $document->getLocale()), $categories);
        $node->setProperty(sprintf(self::NAVIGATION_CONTEXT_PROPERTY, $document->getLocale()), $navigationContext);
    }
public function copyFromShadow ( $ document , NodeInterface $ node ) { $ shadowLocale = $ document -> getShadowLocale ( ) ; $ tags = $ this -> getTags ( $ node , $ shadowLocale ) ; $ categories = $ this -> getCategories ( $ node , $ shadowLocale ) ; $ navigationContext = $ this -> getNavigationContext ( $ node , $ shadowLocale ) ; $ node -> setProperty ( sprintf ( self :: TAGS_PROPERTY , $ document -> getLocale ( ) ) , $ tags ) ; $ node -> setProperty ( sprintf ( self :: CATEGORIES_PROPERTY , $ document -> getLocale ( ) ) , $ categories ) ; $ node -> setProperty ( sprintf ( self :: NAVIGATION_CONTEXT_PROPERTY , $ document -> getLocale ( ) ) , $ navigationContext ) ; }
Copy tags and categories from base-locale to current locale.

@param object $document
@param NodeInterface $node
Copy tags and categories from base - locale to current locale .