Devise\Media\Helpers\Caption::saveForImage PHP Метод

saveForImage() публичный Метод

Saves the text file using the image path, and text passed
public saveForImage ( string $imagePath, $text ) : string
$imagePath string
Результат string $text
    public function saveForImage($imagePath, $text)
    {
        $captionPath = $this->MediaPaths->imageCaptionPath($imagePath);
        return $this->File->put($captionPath, $text);
    }