protected function toJsonLD(NodeInterface $node)
 {
     $data = $node->getPropertiesValues(null, false);
     $data['@'] = $node->getPath();
     $data['a'] = $node->getPrimaryNodeType();
     return $data;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function getPropertiesValues($nameFilter = null, $dereference = true)
 {
     return $this->node->getPropertiesValues($nameFilter, $dereference);
 }