Magento 2 – How to get value in “core_config_data” table

First you need to include the Magento\Store\Model\ScopeInterface class in your constructor:

Then in your class’ method you can call the following: