public checkS3Usage ( ) : boolean | ||
return | boolean |
public function checkS3Usage()
{
if (is_null($this->useS3)) {
$currentStorage = (int) $this->scopeConfig->getValue(Storage::XML_PATH_STORAGE_MEDIA);
$this->useS3 = $currentStorage == Storage::STORAGE_MEDIA_S3;
}
return $this->useS3;
}