public function evaluate()
    {
        $node = $this->getNode();
        if ($node instanceof NodeInterface) {
            $contentContext = $node->getContext();
            if ($contentContext instanceof \Neos\Neos\Domain\Service\ContentContext) {
                $site = $contentContext->getCurrentSite();
                $siteConfiguration = $this->siteConfigurationRepository->findOneBySite($site);

                return $siteConfiguration;
            }
        }

        return null;
    }
public function evaluate()
    {
        $node = $this->getNode();
        if ($node instanceof NodeInterface) {
            $contentContext = $node->getContext();
            if ($contentContext instanceof \Neos\Neos\Domain\Service\ContentContext) {
                $site = $contentContext->getCurrentSite();
                $siteConfiguration = $this->siteConfigurationRepository->findOneBySite($site);

                return $siteConfiguration;
            }
        }

        return null;
    }
public function evaluate ( ) { $ node = $ this -> getNode ( ) ; if ( $ node instanceof NodeInterface ) { $ contentContext = $ node -> getContext ( ) ; if ( $ contentContext instanceof \ Neos \ Neos \ Domain \ Service \ ContentContext ) { $ site = $ contentContext -> getCurrentSite ( ) ; $ siteConfiguration = $ this -> siteConfigurationRepository -> findOneBySite ( $ site ) ; return $ siteConfiguration ; } } return null ; }
Find a SiteConfiguration entity for the current site

@return \Neos\GoogleAnalytics\Domain\Model\SiteConfiguration
Find a SiteConfiguration entity for the current site