Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
ScopeDefault Class Reference
Inheritance diagram for ScopeDefault:
ScopeInterface

Public Member Functions

 getCode ()
 
 getId ()
 
 getScopeType ()
 
 getScopeTypeName ()
 
 getName ()
 

Additional Inherited Members

- Data Fields inherited from ScopeInterface
const SCOPE_DEFAULT = 'default'
 

Detailed Description

Class ScopeDefault

Definition at line 11 of file ScopeDefault.php.

Member Function Documentation

◆ getCode()

getCode ( )

Retrieve scope code

Returns
string

Implements ScopeInterface.

Definition at line 18 of file ScopeDefault.php.

19  {
20  return 'default';
21  }

◆ getId()

getId ( )

Get scope identifier

Returns
int

Implements ScopeInterface.

Definition at line 28 of file ScopeDefault.php.

29  {
30  return 1;
31  }

◆ getName()

getName ( )

Get scope name

Returns
string

Implements ScopeInterface.

Definition at line 58 of file ScopeDefault.php.

59  {
60  return 'Default';
61  }

◆ getScopeType()

getScopeType ( )

Get scope type

Returns
string

Implements ScopeInterface.

Definition at line 38 of file ScopeDefault.php.

39  {
40  return self::SCOPE_DEFAULT;
41  }

◆ getScopeTypeName()

getScopeTypeName ( )

Get scope type name

Returns
string

Implements ScopeInterface.

Definition at line 48 of file ScopeDefault.php.

49  {
50  return 'Default Scope';
51  }

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