diff --git a/Helper/Data.php b/Helper/Data.php index 9fa1b60..fbc41c9 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -63,6 +63,8 @@ public function getConfig($field, $default="", $store = null) if($result == "") { $result = $default; } + + return $result; } @@ -82,6 +84,7 @@ public function getConfigData($field, $store = null) $field, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store); + return $result; } @@ -91,6 +94,8 @@ public function getConfigData($field, $store = null) * @param string $str * @return string */ + + public function filter($str) { $html = $this->_filterProvider->getPageFilter()->filter($str); @@ -105,6 +110,7 @@ public function filter($str) */ public function isEnabled($storeId = null) { + return $this->getConfigData(self::XML_PATH_GENERAL_ENABLED, $storeId); } diff --git a/Model/Config/Source/Categories.php b/Model/Config/Source/Categories.php index a153281..5357f14 100644 --- a/Model/Config/Source/Categories.php +++ b/Model/Config/Source/Categories.php @@ -6,6 +6,8 @@ namespace Tutorialstab\LazyloadingInfiniteScroll\Model\Config\Source; + + /** * Categories * @package Tutorialstab_ImportExportCategories @@ -16,6 +18,8 @@ class Categories implements \Magento\Framework\Option\ArrayInterface { * @var \Magento\User\Model\UserFactory */ protected $_categoryFactory; + + /** * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory