src/ElementBase.php
public function getHolderPage()
    {
        if (!$this->PageID && !$this->ElementID) return null;

        $holder = $this->getHolder();
        while (
            $holder
            && $holder->exists()
            && !is_a($holder, SiteTree::class)
        ) {
            $holder = $holder->getHolder();
        }

        return $holder;
    }
public function getHolderPage()
    {
        if (!$this->PageID && !$this->ElementID) return null;

        $holder = $this->getHolder();
        while (
            $holder
            && $holder->exists()
            && !is_a($holder, SiteTree::class)
        ) {
            $holder = $holder->getHolder();
        }

        return $holder;
    }
public function getHolderPage ( ) { if ( ! $ this -> PageID && ! $ this -> ElementID ) return null ; $ holder = $ this -> getHolder ( ) ; while ( $ holder && $ holder -> exists ( ) && ! is_a ( $ holder , SiteTree :: class ) ) { $ holder = $ holder -> getHolder ( ) ; } return $ holder ; }
Recursive look up for holder page.
Recursive look up for holder page .