Loading a configuration value from the core_config_data table (Magento 2)

You may need to retrieve a value from Magento 2′s core_config_data table. This table typically stores configuration settings entered in the admin area. Use the following code to read the required value: