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