Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
wishlist.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()) : ?>
12  <a href="#" data-post='<?= /* @noEscape */ $block->getUpdateParams() ?>' class="action towishlist updated" data-action="add-to-wishlist">
13  <span><?= $block->escapeHtml(__('Update Wish List')) ?></span>
14  </a>
15 <?php endif; ?>
16 <script type="text/x-magento-init">
17  {
18  "body": {
19  "addToWishlist": <?= /* @noEscape */ $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($block->getWishlistOptions()) ?>
20  }
21  }
22 </script>
__()
Definition: __.php:13
$block
Definition: block.php:8
if( $block->getWishlistHelper() ->isAllow())(__( 'Add to Wish List')) ?>" aria-label endif
Definition: wishlist.phtml:11