code: private function resolveFieldLinks($field, string $locale = null)
      {
          // If no locale is set, to resolve links we use either the special "*" locale,
          // or the default one, depending whether this entry was built using a locale or not
          if (null === $locale) {
              $locale = null === $this->sys->getLocale()
                  ? '*'
                  : $this->getLocale();
          }
  
          if ($field instanceof Link) {
              return $this->client->resolveLink($field, $locale);
          }
  
          if (\is_array($field) && isset($field[0]) && $field[0] instanceof Link) {
              return $this->client->resolveLinkCollection($field, $locale);
          }
  
          return $field;
      }
docs: Given a field value, this method will resolve links
  if it's a Link object or an array of links.
  
  @param mixed       $field
  @param string|null $locale
  
  @return mixed