public function getParentList()
    {
        if (null === $this->parentList) {
            $this->parentList = [];

            $parent = $this->getDescriptor()->getParent();

            for ($index = 1; null !== $parent; $index++) {
                $this->parentList[$parent->getName() . '-'] = $parent;

                $parent = $parent->getDescriptor()->getParent();
            }
        }

        return $this->parentList;
    }
public function getParentList()
    {
        if (null === $this->parentList) {
            $this->parentList = [];

            $parent = $this->getDescriptor()->getParent();

            for ($index = 1; null !== $parent; $index++) {
                $this->parentList[$parent->getName() . '-'] = $parent;

                $parent = $parent->getDescriptor()->getParent();
            }
        }

        return $this->parentList;
    }
public function getParentList ( ) { if ( null === $ this -> parentList ) { $ this -> parentList = [ ] ; $ parent = $ this -> getDescriptor ( ) -> getParent ( ) ; for ( $ index = 1 ; null !== $ parent ; $ index ++ ) { $ this -> parentList [ $ parent -> getName ( ) . '-' ] = $ parent ; $ parent = $ parent -> getDescriptor ( ) -> getParent ( ) ; } } return $ this -> parentList ; }
Return the template parent list

@return array|null
Return the template parent list