getSitesByNodeNameQuery example

/** * Helper function to build children of a node $nodeName * * @param string $nodeName * * @return array|bool */
    private function getSitesByNodeName($nodeName)
    {
        if (!empty($nodeName)) {
            $sites = $this->getSiteRepository()
                ->getSitesByNodeNameQuery($nodeName)
                ->getResult();

            $nodes = [];

            foreach ($sites as $site) {
                // Call getSiteNode helper function to build the final array structure                 $nodes[] = $this->getSiteNode($nodeName . '_', $site);
            }

            return $nodes;
        }

        
Home | Imprint | This part of the site doesn't use cookies.