getWebspaceNode() public method

Returns the webspace node for given webspace.
Deprecation: Do not use anymore, because the node is always returned from the default session, although multiple sessions can exist
public getWebspaceNode ( $webspaceKey ) : PHPCR\NodeInterface
return PHPCR\NodeInterface
Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function loadStringByWildcard($webspaceKey, $wildcard)
 {
     $webspaceNode = $this->deprecatedSessionManager->getWebspaceNode($webspaceKey);
     $properties = $webspaceNode->getProperties($this->getPropertyName($wildcard));
     $data = [];
     foreach ($properties as $property) {
         $data[substr($property->getName(), 9)] = $property->getString();
     }
     return $data;
 }