Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Model
Entity
Scope.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Model\Entity
;
8
12
class
Scope
implements
ScopeInterface
13
{
17
private
$identifier;
18
22
private
$value;
23
27
private
$fallback;
28
36
public
function
__construct
(
37
$identifier,
38
$value,
39
ScopeInterface
$fallback =
null
40
) {
41
$this->identifier = $identifier;
42
$this->
value
= $value;
43
$this->fallback = $fallback;
44
}
45
49
public
function
getValue
()
50
{
51
return
$this->value;
52
}
53
57
public
function
getIdentifier
()
58
{
59
return
$this->identifier;
60
}
61
65
public
function
getFallback
()
66
{
67
return
$this->fallback;
68
}
69
}
value
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition:
block.php:9
Magento\Framework\Model\Entity\Scope\__construct
__construct( $identifier, $value, ScopeInterface $fallback=null)
Definition:
Scope.php:36
Magento\Framework\Model\Entity\ScopeInterface
Definition:
ScopeInterface.php:12
Magento\Framework\Model\Entity\Scope\getValue
getValue()
Definition:
Scope.php:49
Magento\Framework\Model\Entity
Definition:
RepositoryFactory.php:7
Magento\Framework\Model\Entity\Scope\getFallback
getFallback()
Definition:
Scope.php:65
Magento\Framework\Model\Entity\Scope\getIdentifier
getIdentifier()
Definition:
Scope.php:57
Magento\Framework\Model\Entity\Scope
Definition:
Scope.php:12