code: public function addThumbnail(\TYPO3\CMS\Extbase\Domain\Model\FileReference $thumbnail) {
      $this->thumbnails->attach($thumbnail);
    }
docs: Adds a thumbnail to the overview navigation item.
  
  @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $thumbnail The thumbnail to be added