setTemplate('/Modules/Editor/Theme/Backend/Components/Editor/inline-editor'); } /** * Render the form id * * @return string * * @since 1.0.0 */ public function renderId() : string { return $this->printHtml($this->id); } /** * Render the form name * * @return string * * @since 1.0.0 */ public function renderName() : string { return $this->printHtml($this->name); } /** * Render the form attribute name * * @return string * * @since 1.0.0 */ public function renderForm() : string { return $this->printHtml($this->form); } /** * Render the preview * * Usually markdown * * @return string * * @since 1.0.0 */ public function renderPreview() : string { return $this->preview; } /** * Render the plain text * * @return string * * @since 1.0.0 */ public function renderPlain() : string { return $this->printHtml($this->plain); } /** * Render template text reference * * @return string * * @since 1.0.0 */ public function renderTplText() : string { return $this->printHtml($this->tplText); } /** * Render template value reference * * @return string * * @since 1.0.0 */ public function renderTplValue() : string { return $this->printHtml($this->tplValue); } /** * Render template value path * * @return string * * @since 1.0.0 */ public function renderTplValuePath() : string { return $this->printHtml($this->tplValuePath); } /** * Render text value path * * @return string * * @since 1.0.0 */ public function renderTextValuePath() : string { return $this->printHtml($this->textValuePath); } /** * {@inheritdoc} */ public function render(mixed ...$data) : string { /** @var array{0:null|string, 1:null|string, 2:null|string, 3:null|string, 4:null|string, 5:null|string, 6:null|string, 7:null|string, 8:null|string} $data */ $this->id = $data[0] ?? ''; $this->name = $data[1] ?? ''; $this->form = $data[2] ?? ''; $this->plain = $data[3] ?? ''; $this->preview = $data[4] ?? ''; $this->tplText = $data[5] ?? ''; $this->tplValue = $data[6] ?? ''; $this->tplValuePath = $data[7] ?? ''; $this->textValuePath = $data[8] ?? ''; return parent::render(); } }