/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Translate/Inline/ParserInterface.php
59 строк
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Framework\Translate\Inline; /** * Processes the content with the inline translation replacement so the inline translate JavaScript code will work. * * @api * @since 100.0.2 */ interface ParserInterface { /** * Regular Expression for detected and replace translate */ const REGEXP_TOKEN = '\{\{\{(.*?)\}\}\{\{(.*?)\}\}\{\{(.*?)\}\}\{\{(.*?)\}\}\}'; /** * Parse and save edited translation * * @param array $translateParams * @return $this */ public function processAjaxPost(array $translateParams); /** * Replace html body with translation wrapping. * * @param string $body * @return string */ public function processResponseBodyString($body); /** * Returns the body content that is being parsed. * * @return string */ public function getContent(); /** * Sets the body content that is being parsed passed upon the passed in string. * * @param string $content * @return void */ public function setContent($content); /** * Set flag about parsed content is Json * * @param bool $flag * @return $this */ public function setIsJson($flag); }