code: public function all(string $locale = null, bool $resolveLinks = true): array
      {
          $values = [];
          foreach ($this->getContentType()->getFields() as $field) {
              $result = $this->getUnresolvedField($field, $locale);
  
              $values[$field->getId()] = $resolveLinks
                  ? $this->resolveFieldLinks($result, $locale)
                  : $result;
          }
  
          return $values;
      }
docs: Returns all fields of the current entry, with some optimizations applied.
  Links are resolved by default. If you want to get raw link objects rather than
  complete resources, set the $resolveLinks parameter to false.
  
  @param string|null $locale
  @param bool        $resolveLinks
  
  @return array