Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-cookie
Block
RequireCookie.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Cookie\Block
;
11
16
class
RequireCookie
extends
\Magento\Framework\View\Element\Template
17
{
23
public
function
getScriptOptions
()
24
{
25
$params
= [
26
'noCookieUrl'
=> $this->
escapeUrl
($this->
getUrl
(
'cookie/index/noCookies/'
)),
27
'triggers'
=> $this->
escapeHtml
($this->getTriggers())
28
];
29
return
json_encode(
$params
);
30
}
31
}
Magento\Cookie\Block
Magento\Cookie\Block\RequireCookie
Definition:
RequireCookie.php:16
Magento\Cookie\Block\RequireCookie\getScriptOptions
getScriptOptions()
Definition:
RequireCookie.php:23
Magento\Framework\View\Element\AbstractBlock\escapeHtml
escapeHtml($data, $allowedTags=null)
Definition:
AbstractBlock.php:890
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\Framework\View\Element\AbstractBlock\escapeUrl
escapeUrl($string)
Definition:
AbstractBlock.php:954
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18