97377ca2480a982b39e3c07d5ab5112ca4a8db87
[GitHub/WoltLab/WCF.git] /
1 <?php
2 namespace wcf\system\template\plugin;
3 use wcf\system\html\simple\HtmlSimpleParser;
4 use wcf\system\template\TemplateScriptingCompiler;
5
6 /**
7 * Template prefilter plugin that replaces simple embedded object placeholders.
8 *
9 * This template plugin is intended for internal use only.
10 *
11 * @author Alexander Ebert
12 * @copyright 2001-2018 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
14 * @package WoltLabSuite\Core\System\Template\Plugin
15 * @since 3.0
16 * @see \wcf\data\page\content\PageContent::getParsedTemplate()
17 */
18 class SimpleEmbeddedObjectPrefilterTemplatePlugin implements IPrefilterTemplatePlugin {
19 /**
20 * @inheritDoc
21 */
22 public function execute($templateName, $sourceContent, TemplateScriptingCompiler $compiler) {
23 return HtmlSimpleParser::getInstance()->parseTemplate($sourceContent);
24 }
25 }