File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
app/code/Magento/MediaGalleryRenditions/Model Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,6 @@ class GenerateRenditions implements GenerateRenditionsInterface
2626{
2727 private const IMAGE_FILE_NAME_PATTERN = '#\.(jpg|jpeg|gif|png)$# i ' ;
2828
29- /**
30- * Get image file name pattern for validation
31- *
32- * @return string
33- */
34- public function getImageFileNamePattern (): string
35- {
36- return self ::IMAGE_FILE_NAME_PATTERN ;
37- }
38-
3929 /**
4030 * @var AdapterFactory
4131 */
@@ -232,4 +222,14 @@ private function getMediaDirectory(): WriteInterface
232222 {
233223 return $ this ->filesystem ->getDirectoryWrite (DirectoryList::MEDIA );
234224 }
225+
226+ /**
227+ * Get image file name pattern for validation
228+ *
229+ * @return string
230+ */
231+ public function getImageFileNamePattern (): string
232+ {
233+ return self ::IMAGE_FILE_NAME_PATTERN ;
234+ }
235235}
You can’t perform that action at this time.
0 commit comments