public function compileMap(ResolverInterface $resolver) : array
    {
        if ($resolver instanceof AggregateResolver) {
            return $this->compileFromAggregateResolver($resolver);
        }

        if ($resolver instanceof TemplatePathStack) {
            return $this->compileFromTemplatePathStack($resolver);
        }

        if ($resolver instanceof TemplateMapResolver) {
            return $this->compileFromTemplateMapResolver($resolver);
        }

        return [];
    }
public function compileMap(ResolverInterface $resolver) : array
    {
        if ($resolver instanceof AggregateResolver) {
            return $this->compileFromAggregateResolver($resolver);
        }

        if ($resolver instanceof TemplatePathStack) {
            return $this->compileFromTemplatePathStack($resolver);
        }

        if ($resolver instanceof TemplateMapResolver) {
            return $this->compileFromTemplateMapResolver($resolver);
        }

        return [];
    }
public function compileMap ( ResolverInterface $ resolver ) : array { if ( $ resolver instanceof AggregateResolver ) { return $ this -> compileFromAggregateResolver ( $ resolver ) ; } if ( $ resolver instanceof TemplatePathStack ) { return $ this -> compileFromTemplatePathStack ( $ resolver ) ; } if ( $ resolver instanceof TemplateMapResolver ) { return $ this -> compileFromTemplateMapResolver ( $ resolver ) ; } return [ ] ; }
Generates a list of all existing templates in the given resolver,
with their names being keys, and absolute paths being values

@param ResolverInterface $resolver

@return array

@throws \Zend\View\Exception\DomainException
Generates a list of all existing templates in the given resolver with their names being keys and absolute paths being values