Neos\Neos\Domain\Model\Site::getNodeName PHP Метод

getNodeName() публичный Метод

If you need to fetch the root node for this site, use the content context, do not use the NodeDataRepository!
public getNodeName ( ) : string
Результат string The node name
    public function getNodeName()
    {
        return $this->nodeName;
    }

Usage Example

 /**
  * Returns the node of the current site.
  *
  * @return NodeInterface
  */
 public function getCurrentSiteNode()
 {
     if ($this->currentSite !== null && $this->currentSiteNode === null) {
         $siteNodePath = NodePaths::addNodePathSegment(SiteService::SITES_ROOT_PATH, $this->currentSite->getNodeName());
         $this->currentSiteNode = $this->getNode($siteNodePath);
         if (!$this->currentSiteNode instanceof NodeInterface) {
             $this->systemLogger->log(sprintf('Warning: %s::getCurrentSiteNode() couldn\'t load the site node for path "%s" in workspace "%s". This is probably due to a missing baseworkspace for the workspace of the current user.', __CLASS__, $siteNodePath, $this->workspaceName), LOG_WARNING);
         }
     }
     return $this->currentSiteNode;
 }
All Usage Examples Of Neos\Neos\Domain\Model\Site::getNodeName