Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
Config Class Reference

Public Member Functions

 __construct (ScopeConfigInterface $scopeConfig)
 
 isModuleEnabled (int $storeId)
 
 getButtonText (int $storeId)
 

Data Fields

const ACTIVE = 'sales/instant_purchase/active'
 
const BUTTON_TEXT = 'sales/instant_purchase/button_text'
 

Detailed Description

Instant purchase configuration.

Definition at line 15 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ScopeConfigInterface  $scopeConfig)

Data constructor.

Parameters
ScopeConfigInterface$scopeConfig

Definition at line 29 of file Config.php.

31  {
32  $this->scopeConfig = $scopeConfig;
33  }

Member Function Documentation

◆ getButtonText()

getButtonText ( int  $storeId)

Defines instant purchase trigger button title on product page.

Parameters
int$storeId
Returns
string

Definition at line 52 of file Config.php.

52  : string
53  {
54  return $this->getValue(self::BUTTON_TEXT, $storeId);
55  }

◆ isModuleEnabled()

isModuleEnabled ( int  $storeId)

Defines is feature enabled.

Parameters
int$storeId
Returns
bool

Definition at line 41 of file Config.php.

41  : bool
42  {
43  return $this->isSetFlag(self::ACTIVE, $storeId);
44  }

Field Documentation

◆ ACTIVE

const ACTIVE = 'sales/instant_purchase/active'

Definition at line 17 of file Config.php.

◆ BUTTON_TEXT

const BUTTON_TEXT = 'sales/instant_purchase/button_text'

Definition at line 18 of file Config.php.


The documentation for this class was generated from the following file: