2 namespace wcf\system\template\plugin;
3 use wcf\system\html\simple\HtmlSimpleParser;
4 use wcf\system\template\TemplateScriptingCompiler;
7 * Template prefiler plugin that replaces simple embedded object placeholders. Not to be meant for
8 * regular use, is currently only utilized in `wcf\data\page\content\PageContent::getParsedTemplate()`.
10 * @author Alexander Ebert
11 * @copyright 2001-2016 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Template\Plugin
16 class SimpleEmbeddedObjectPrefilterTemplatePlugin implements IPrefilterTemplatePlugin {
20 public function execute($templateName, $sourceContent, TemplateScriptingCompiler $compiler) {
21 return HtmlSimpleParser::getInstance()->parseTemplate($sourceContent);