code: public function getRelatedUrl(string $type, $id, string $field, array $params = []): string
      {
          return $this->url([$type, $id, $field], $params);
      }
docs: Get the URI for a related resource.
  
  @param string $type
  @param mixed $id
  @param string $field
  @param array $params
  @return string