src/Sulu/Component/DocumentManager/Subscriber/Behavior/Mapping/NodeNameSubscriber.php
private function setNodeName(AbstractMappingEvent $event)
    {
        $document = $event->getDocument();

        if (!$document instanceof NodeNameBehavior) {
            return;
        }

        $node = $event->getNode();
        $accessor = $event->getAccessor();
        $accessor->set(
            'nodeName',
            $node->getName()
        );
    }
private function setNodeName(AbstractMappingEvent $event)
    {
        $document = $event->getDocument();

        if (!$document instanceof NodeNameBehavior) {
            return;
        }

        $node = $event->getNode();
        $accessor = $event->getAccessor();
        $accessor->set(
            'nodeName',
            $node->getName()
        );
    }
private function setNodeName ( AbstractMappingEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof NodeNameBehavior ) { return ; } $ node = $ event -> getNode ( ) ; $ accessor = $ event -> getAccessor ( ) ; $ accessor -> set ( 'nodeName' , $ node -> getName ( ) ) ; }
Sets the node name.

@param AbstractMappingEvent $event

@throws DocumentManagerException
Sets the node name .