Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\App\ScopeResolverInterface $scopeResolver, \Magento\Framework\UrlInterface $url, \Magento\Framework\View\LayoutInterface $layout, \Magento\Framework\Translate\Inline\ConfigInterface $config, \Magento\Framework\Translate\Inline\ParserInterface $parser, \Magento\Framework\Translate\Inline\StateInterface $state, $templateFileName='', $translatorRoute='', $scope=null) | |
isAllowed () | |
getParser () | |
processResponseBody (&$body, $isJson=false) | |
getAdditionalHtmlAttribute ($tagName=null) | |
Protected Member Functions | |
addInlineScript () | |
getAjaxUrl () | |
stripInlineTranslations (&$body) | |
Protected Attributes | |
$isAllowed | |
$parser | |
$isScriptInserted = false | |
$url | |
$layout | |
$config | |
$scopeResolver | |
$templateFileName | |
$translatorRoute | |
$scope | |
$state | |
Definition at line 11 of file Inline.php.
__construct | ( | \Magento\Framework\App\ScopeResolverInterface | $scopeResolver, |
\Magento\Framework\UrlInterface | $url, | ||
\Magento\Framework\View\LayoutInterface | $layout, | ||
\Magento\Framework\Translate\Inline\ConfigInterface | $config, | ||
\Magento\Framework\Translate\Inline\ParserInterface | $parser, | ||
\Magento\Framework\Translate\Inline\StateInterface | $state, | ||
$templateFileName = '' , |
|||
$translatorRoute = '' , |
|||
$scope = null |
|||
) |
Initialize inline translation model
\Magento\Framework\App\ScopeResolverInterface | $scopeResolver | |
\Magento\Framework\UrlInterface | $url | |
\Magento\Framework\View\LayoutInterface | $layout | |
Inline\ConfigInterface | $config | |
Inline\ParserInterface | $parser | |
Inline\StateInterface | $state | |
string | $templateFileName | |
string | $translatorRoute | |
null | $scope |
Definition at line 85 of file Inline.php.
|
protected |
Add inline script code
Insert script and html with added inline translation content.
Definition at line 185 of file Inline.php.
getAdditionalHtmlAttribute | ( | $tagName = null | ) |
Additional translation mode html attribute is not needed for base inline translation.
mixed | string | null | $tagName |
Implements InlineInterface.
Definition at line 172 of file Inline.php.
|
protected |
getParser | ( | ) |
Retrieve Inline Parser instance
Implements InlineInterface.
Definition at line 129 of file Inline.php.
isAllowed | ( | ) |
Check if Inline Translates is allowed
Implements InlineInterface.
Definition at line 112 of file Inline.php.
processResponseBody | ( | & | $body, |
$isJson = false |
|||
) |
Replace translation templates with HTML fragments
array | string | &$body | |
bool | $isJson |
Implements InlineInterface.
Definition at line 141 of file Inline.php.
|
protected |
Strip inline translations from text
array | string | &$body |
Definition at line 235 of file Inline.php.
|
protected |
Definition at line 45 of file Inline.php.
|
protected |
Definition at line 18 of file Inline.php.
|
protected |
Definition at line 30 of file Inline.php.
|
protected |
Definition at line 40 of file Inline.php.
|
protected |
Definition at line 23 of file Inline.php.
|
protected |
Definition at line 65 of file Inline.php.
|
protected |
Definition at line 50 of file Inline.php.
|
protected |
Definition at line 70 of file Inline.php.
|
protected |
Definition at line 55 of file Inline.php.
|
protected |
Definition at line 60 of file Inline.php.
|
protected |
Definition at line 35 of file Inline.php.