Sulu\Component\PHPCR\SessionManager\SessionManagerInterface::getRouteNode PHP Method

getRouteNode() public method

Returns the route 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 getRouteNode ( string $webspaceKey, string $languageCode, string $segment = null ) : PHPCR\NodeInterface
$webspaceKey string
$languageCode string
$segment string
return PHPCR\NodeInterface
    public function getRouteNode($webspaceKey, $languageCode, $segment = null);

Usage Example

Beispiel #1
0
 /**
  * returns base node of routes from phpcr.
  *
  * @param string $webspaceKey  current session
  * @param string $languageCode
  * @param string $segmentKey
  *
  * @return \PHPCR\NodeInterface base node of routes
  */
 private function getWebspaceRouteNode($webspaceKey, $languageCode, $segmentKey)
 {
     // trailing slash
     return $this->sessionManager->getRouteNode($webspaceKey, $languageCode, $segmentKey);
 }