src/MediaTrait.php
private function getAlt() {
    if (!is_null($this->options->alt)) {
      return $this->options->alt;
    }

    if (!is_null($this->media)) {
      return $this->media->alt;
    }

    return '';
  }
private function getAlt() {
    if (!is_null($this->options->alt)) {
      return $this->options->alt;
    }

    if (!is_null($this->media)) {
      return $this->media->alt;
    }

    return '';
  }
Get the alt text for the file, from options, then from db, otherwise ''

@return string
The Alt text