src/PageTypes/FooterHolder.php
public function redirectionLink()
    {
        $childPage = $this->Children()->first();

        if ($childPage) {
            // If we're linking to another redirectorpage then just return the URLSegment, to prevent a cycle of
            // redirector pages from causing an infinite loop.  Instead, they will cause a 30x redirection loop in
            // the browser, but this can be handled sufficiently gracefully by the browser.
            if ($childPage instanceof RedirectorPage) {
                return $childPage->regularLink();
            }
            // For all other pages, just return the link of the page.
            return $childPage->Link();
        }
    }
public function redirectionLink()
    {
        $childPage = $this->Children()->first();

        if ($childPage) {
            // If we're linking to another redirectorpage then just return the URLSegment, to prevent a cycle of
            // redirector pages from causing an infinite loop.  Instead, they will cause a 30x redirection loop in
            // the browser, but this can be handled sufficiently gracefully by the browser.
            if ($childPage instanceof RedirectorPage) {
                return $childPage->regularLink();
            }
            // For all other pages, just return the link of the page.
            return $childPage->Link();
        }
    }
public function redirectionLink ( ) { $ childPage = $ this -> Children ( ) -> first ( ) ; if ( $ childPage ) { // If we're linking to another redirectorpage then just return the URLSegment, to prevent a cycle of // redirector pages from causing an infinite loop.  Instead, they will cause a 30x redirection loop in // the browser, but this can be handled sufficiently gracefully by the browser. if ( $ childPage instanceof RedirectorPage ) { return $ childPage -> regularLink ( ) ; } // For all other pages, just return the link of the page. return $ childPage -> Link ( ) ; } }
Return the link to the first child page.
Return the link to the first child page .