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

Public Member Functions

 get ($key=null)
 

Protected Attributes

 $defaultValues
 

Detailed Description

Class Config - configuration container for sequence

@api

Since
100.0.2

Definition at line 14 of file Config.php.

Member Function Documentation

◆ get()

get (   $key = null)

Get configuration field

Parameters
string | null$key
Returns
mixed

Definition at line 41 of file Config.php.

42  {
43  if (!array_key_exists($key, $this->defaultValues)) {
44  return null;
45  }
46  return $this->defaultValues[$key];
47  }

Field Documentation

◆ $defaultValues

$defaultValues
protected
Initial value:
= [
'prefix' => '',
'suffix' => '',
'startValue' => 1,
'step' => 1,
'warningValue' => 4294966295,
'maxValue' => 4294967295
]

Definition at line 26 of file Config.php.


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