public function getParentZoneAtSamePositionIfExists(ContentSet $contentSet)
    {
        $indexOfContent = $this->getContentSet()->indexOfByUid($contentSet, true);
        if (false === $indexOfContent) {
            return false;
        }

        $parent = $this->getParent();
        if (null === $parent) {
            return false;
        }

        $parentContentSet = $parent->getContentSet()->item($indexOfContent);
        if ($parentContentSet) {
            return $parentContentSet;
        }

        return false;
    }
public function getParentZoneAtSamePositionIfExists(ContentSet $contentSet)
    {
        $indexOfContent = $this->getContentSet()->indexOfByUid($contentSet, true);
        if (false === $indexOfContent) {
            return false;
        }

        $parent = $this->getParent();
        if (null === $parent) {
            return false;
        }

        $parentContentSet = $parent->getContentSet()->item($indexOfContent);
        if ($parentContentSet) {
            return $parentContentSet;
        }

        return false;
    }
public function getParentZoneAtSamePositionIfExists ( ContentSet $ contentSet ) { $ indexOfContent = $ this -> getContentSet ( ) -> indexOfByUid ( $ contentSet , true ) ; if ( false === $ indexOfContent ) { return false ; } $ parent = $ this -> getParent ( ) ; if ( null === $ parent ) { return false ; } $ parentContentSet = $ parent -> getContentSet ( ) -> item ( $ indexOfContent ) ; if ( $ parentContentSet ) { return $ parentContentSet ; } return false ; }
Returns the parent ContentSet in the same zone, false if it is not found.

@param  ContentSet           $contentSet

@return ContentSet|false
Returns the parent ContentSet in the same zone false if it is not found .