Skip to content

Commit ce045ea

Browse files
authored
Added setStoreId and getStoreId to the Url Model
1 parent c1f9f20 commit ce045ea

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Model/Url.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,24 @@ public function getMediaUrl($file)
360360
return $this->_storeManager->getStore()
361361
->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA) . $file;
362362
}
363+
364+
/**
365+
* @return int|null
366+
*/
367+
public function getStoreId()
368+
{
369+
return $this->storeId;
370+
}
371+
372+
/**
373+
* @param $storeId
374+
* @return $this
375+
*/
376+
public function setStoreId($storeId)
377+
{
378+
$this->storeId = $storeId;
379+
return $this;
380+
}
363381

364382
/**
365383
* Retrieve blog permalink config value

0 commit comments

Comments
 (0)