setTemplate('/Modules/Media/Theme/Backend/Components/InlinePreview/inline-preview'); } /** * {@inheritdoc} */ public function render(...$data) : string { $this->form = $data[0]; $this->id = $data[1]; $this->name = $data[2]; $this->virtualPath = $data[3] ?? '/'; $this->isRequired = $data[4] ?? false; return parent::render(); } /** * Get selector id * * @return string * * @since 1.0.0 */ public function getId() : string { return $this->id; } /** * Is required? * * @return bool * * @since 1.0.0 */ public function isRequired() : bool { return $this->isRequired; } }