SiteNodeUtility
final class SiteNodeUtility (View source)
Methods
findSiteNodeBySite(Site $site, WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint)
Find the site node by the neos site entity.
Details
__construct(ContentRepositoryRegistry $contentRepositoryRegistry)
No description
Node
findSiteNodeBySite(Site $site, WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint)
Find the site node by the neos site entity.
To find the site node for the live workspace in a 0 dimensional content repository use:
$siteNode = $this->siteNodeUtility->findSiteNodeBySite(
$site,
WorkspaceName::forLive(),
DimensionSpacePoint::createWithoutDimensions()
);
To resolve the Site by a node use {\Neos\Neos\Domain\Repository\SiteRepository::findSiteBySiteNode()}