Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Alias.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
18 class Alias
19 {
23  const ALIAS_REPLICA = 'replica';
24 
28  const ALIAS_MAIN = 'main';
29 
35  private $value;
36 
41  public function __construct(string $value)
42  {
43  if ($value !== self::ALIAS_REPLICA && $value !== self::ALIAS_MAIN) {
44  throw new LocalizedException(new Phrase('Wrong value %value for alias', ['value' => $value]));
45  }
46  $this->value = $value;
47  }
48 
52  public function getValue(): string
53  {
54  return $this->value;
55  }
56 }
$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
$value
Definition: gender.phtml:16