Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
Scope.php
Go to the documentation of this file.
1 <?php
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 }
$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
__construct( $identifier, $value, ScopeInterface $fallback=null)
Definition: Scope.php:36