code: public function getResourcePath(ResourceInterface $resource, $absolute = false)
      {
          return $this->resourceManager->getFileUrl($resource, $absolute);
      }
docs: @param ResourceInterface $resource
  @param bool              $absolute
  
  @throws \Exception
  
  @return string