/**
  * @param string        $message
  * @param NodeInterface $node
  */
 protected function info($message, NodeInterface $node)
 {
     $this->logger->info($message, array('node_id' => $node->getNodeId(), 'node_version' => $node->getVersion(), 'node_language' => $node->getLanguage(), 'node_name' => $node->getName()));
 }
 /**
  * @param NodeInterface $node
  *
  * @return FacadeInterface
  */
 public function transformVersion($node)
 {
     $facade = $this->newFacade();
     $facade->id = $node->getId();
     $facade->nodeId = $node->getNodeId();
     $facade->name = $node->getName();
     $facade->version = $node->getVersion();
     $facade->createdBy = $node->getCreatedBy();
     $facade->updatedBy = $node->getUpdatedBy();
     $facade->createdAt = $node->getCreatedAt();
     $facade->updatedAt = $node->getUpdatedAt();
     $facade->status = $this->getTransformer('status')->transform($node->getStatus());
     return $facade;
 }
 /**
  * @param FacadeInterface $facade
  * @param NodeInterface   $node
  * @param AreaInterface   $area
  * @param string          $areaId
  */
 protected function addLinksFromNode(FacadeInterface $facade, NodeInterface $node, AreaInterface $area, $areaId)
 {
     $facade->addLink('_block_list', $this->generateRoute('open_orchestra_api_block_list_with_transverse', array('language' => $node->getLanguage())));
     $facade->addLink('_self_update_block_position', $this->generateRoute('open_orchestra_api_area_update_block_position', array('nodeId' => $node->getNodeId(), 'language' => $node->getLanguage(), 'version' => $node->getVersion(), 'siteId' => $node->getSiteId())));
 }