Xpressengine\Editor\EditorHandler::render PHP Method

render() public method

Rendering the editor
public render ( string $instanceId, array | false $args, string | null $targetId = null ) : string
$instanceId string instance id
$args array | false argument for editor
$targetId string | null target id
return string
    public function render($instanceId, $args, $targetId = null)
    {
        $editor = $this->get($instanceId)->setArguments($args);
        if ($targetId) {
            $editor->setFiles($this->getFiles($targetId));
        }
        return $editor->render();
    }