Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /**
  2. * Retrieve Configuration
  3. *
  4. * @param $field
  5. * @param null $storeId
  6. * @return mixed
  7. */
  8. public function getConfigValue($field, $storeId = null)
  9. {
  10. return $this->scopeConfig->getValue(
  11. $field, ScopeInterface::SCOPE_STORE, $storeId
  12. );
  13. }
  14.  
  15. /**
  16. * Retrieve Configuration
  17. *
  18. * @param $code
  19. * @param null $storeId
  20. * @return mixed
  21. */
  22. public function getGeneralConfig($code, $storeId = null)
  23. {
  24. return $this->getConfigValue($code, $storeId);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement