Skip to content

Commit 0940893

Browse files
committed
PB-341: Save content as template
1 parent 25612ab commit 0940893

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/PageBuilder/Controller/Adminhtml/Template

1 file changed

+3
-1
lines changed

app/code/Magento/PageBuilder/Controller/Adminhtml/Template/Save.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private function validate(RequestInterface $request)
202202
* @throws \Magento\Framework\Exception\FileSystemException
203203
* @throws \Magento\Framework\Exception\InputException
204204
*/
205-
private function storePreviewImage(RequestInterface $request) : string
205+
private function storePreviewImage(RequestInterface $request) : ?string
206206
{
207207
$mediaDir = $this->filesystem
208208
->getDirectoryWrite(\Magento\Framework\App\Filesystem\DirectoryList::MEDIA);
@@ -240,5 +240,7 @@ private function storePreviewImage(RequestInterface $request) : string
240240
// Store the preview image within the new entity
241241
return $filePath;
242242
}
243+
244+
return null;
243245
}
244246
}

0 commit comments

Comments
 (0)