getSiteNode example

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;
        }

        return false;
    }

    /** * Helper function to build the final array to be handed to the view * * @param string $idPrefix * * @return array */
Home | Imprint | This part of the site doesn't use cookies.