Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultPath.php
Go to the documentation of this file.
1 <?php
9 
11 {
17  protected $_parts;
18 
22  public function __construct(array $parts)
23  {
24  $this->_parts = $parts;
25  }
26 
33  public function getPart($code)
34  {
35  return $this->_parts[$code] ?? null;
36  }
37 }
$code
Definition: info.phtml:12