Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Contact.php
- <?php
- namespace VendorModuleBlock;
- class Contact extends MagentoFrameworkViewElementTemplate
- {
- protected $_storeInfo;
- public function __construct(
- MagentoStoreModelInformation $storeInfo
- )
- {
- $this->_storeInfo = $storeInfo;
- }
- public function getPhoneNumber()
- {
- return $this->_storeInfo->getInformationObject()->getPhone();
- }
- }
- <?php
- echo "Phone: ".$block->getPhoneNumber();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement